Mathematica > Dynamic Interactivity > Viewers and Annotation >
Mathematica > Dynamic Interactivity > Custom Interface Construction > Standalone Interfaces > Viewers and Annotation >

Labeled

Updated In 7 Graphic
Labeled[expr, lbl]
displays expr labeled with lbl.
Labeled[expr, lbl, pos]
places lbl at a position specified by pos.
Labeled[expr, {lbl1, lbl2, ...}, {pos1, ...}]
places the lbli at positions posi.
Labeled[expr, {lbl1, lbl2, lbl3, lbl4}, All]
places the lbli at the bottom, left, top and right, respectively.
  • Labeled can be used with graphics or any other expression.
  • Possible forms for the posi are:
sidecentered on the specified side
{side,align}on the specified side with the specified alignment
  • In charting functions such as BarChart and PieChart certain additional special positions such as Above and "RadialCenter" are supported.
  • The effective default for pos is normally Bottom.
  • Labeled[expr, ...] does not affect linewrapping of expr.
  • The following options can be given:
Alignment{Center,Baseline}horizontal and vertical alignment of elements
BackgroundNonewhat background colors to use
BaselinePositionAutomaticwhat to align with a surrounding text baseline
BaseStyle{}base style specifications for the labeled expression
FrameNonewhether to draw a frame
FrameMargins0margins to leave inside the frame
FrameStyleAutomaticstyles to use for frames
ImageMargins0margins to add outside the display area
ImageSizeAutomaticthe overall image size of the display area
LabelStyle{}style specifications for labels
RotateLabelFalsewhether to rotate left and right labels
RoundingRadius0radius for rounded corners
SpacingsAutomatichorizontal and vertical label spacings
  • The settings for BaseStyle and LabelStyle are appended to the default styles typically given by the "Labeled" and "LabeledLabel" styles in the current stylesheet.
New in 6 | Last modified in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team