displays as an overlay of all the .

displays as an overlay of , , .

allows selections to be made and controls to be clicked in .

Details and OptionsDetails and Options

  • The can be graphics, text, or any other expressions.
  • In Overlay[{expr1,expr2,}] the later are rendered on top of earlier ones.
  • Overlay[exprs] is equivalent to Overlay[exprs,All,None] and displays as an overlay of all the exprs.
  • Overlay[exprs] by default allows no selection within the exprs.
  • The following options can be given:
  • Alignment{Automatic,Automatic}how to align objects in the display area
    BackgroundNonebackground color to use
    BaselinePositionAutomaticwhat to align with a surrounding text baseline
    BaseStyle{}base style specifications for the displayed object
    ContentPaddingTruewhether to shrink the margins tightly around the contents
    FrameMarginsAutomaticmargins to leave inside the overall frame
    ImageMargins0margins around the image of the displayed object
    ImageSizeAllthe overall image size for the displayed object
  • With the default option setting ImageSize->All, Overlay always leaves space for the largest of the to be displayed, so that its overall size does not change.
  • With the option setting ImageSize->Automatic, Overlay leaves space only for the currently being displayed.
  • The settings for BaseStyle are appended to the default style given by the style in the current stylesheet.
Introduced in 2010