Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
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.
Label a graphic:
Label a slider:
Use a checkbox as a label:
Control the placement of labels:
Put the label at the bottom, aligned left:
Put the label on the right, aligned at the top:
Use graphics as labels:
Adjust the alignment of the labeled expression:
Change the overall background color:
Align with surrounding text:
By default, editing of labels and expressions is allowed:
Disallow editing:
Frame only the expression, not the label:
Add space within the frame:
FrameMargins also increases the area to which Background applies:
Change the color of the frame:
Add margins around the labeled expression:
Specify different margins for each side:
Specify the overall size:
Style the label:
Use Directive to specify compound styles:
Automatically rotate vertical labels:
Specify that vertical labels should not be rotated:
Round the corners of the frame:
Add horizontal spacing between the expression and the label:
Specify vertical spacing:
Use both vertical and horizontal spacing:
Label images with checkboxes, potentially for later processing:
Create an active label:
New in 6 | Last modified in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team