This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)


displays expr labeled with lbl.
places lbl at a position specified by pos.
places the at positions .
Labeled[expr, {lbl1, lbl2, lbl3, lbl4}, All]
places the at the bottom, left, top, and right, respectively.
  • Labeled can be used with graphics or any other expression.
  • Possible forms for the 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 and are supported.
  • The effective default for pos is normally Bottom.
  • Labeled 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 and styles in the current stylesheet.
Create a label:
Label on the left:
Label on the left and top:
Create a label:
Click for copyable input
Click for copyable input
Label on the left:
Click for copyable input
Label on the left and top:
Click for copyable input
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