- See Also
-
Related Guides
- Viewers and Annotation
- Graph Visualization
- Chart Labeling, Legending & Annotation
- Graph Styling, Labeling, and Layout
- User Interface Structuring & Layout
- Annotating & Combining Graphics
- Labels
- Chart Styling & Layout
- Data Visualization
- Function Visualization
- Palettes
- Graphics Annotation & Appearance
- Standalone Interfaces
- Tech Notes
-
- See Also
-
Related Guides
- Viewers and Annotation
- Graph Visualization
- Chart Labeling, Legending & Annotation
- Graph Styling, Labeling, and Layout
- User Interface Structuring & Layout
- Annotating & Combining Graphics
- Labels
- Chart Styling & Layout
- Data Visualization
- Function Visualization
- Palettes
- Graphics Annotation & Appearance
- Standalone Interfaces
- Tech Notes
Labeled
Details and Options
- Labeled can be used with graphics or any other expression.
- Possible forms for the posi are:
-
side centered on the specified side {side,align} on the specified side with the specified alignment - Possible forms for side include Bottom, Left, Top, Right.
- Possible forms for align include Center, Left, Right, Bottom, Top.
- In charting functions such as BarChart and PieChart, certain additional special positions such as Above and "RadialCenter" are supported.
- Labeled[expr,lbls,All] is equivalent to Labeled[expr,lbls,{Bottom,Left,Top,Right}].
- 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 Background None what background colors to use BaselinePosition Automatic what to align with a surrounding text baseline BaseStyle {} base style specifications for the labeled expression ContentSize Automatic the absolute size for the content area Frame None whether to draw a frame FrameMargins 0 margins to leave inside the frame FrameStyle Automatic styles to use for frames ImageMargins 0 margins to add outside the display area LabelStyle {} style specifications for labels RotateLabel False whether to rotate left and right labels RoundingRadius 0 radius for rounded corners Spacings Automatic horizontal 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.
Examples
open all close allBasic Examples (2)
Labeled[{a, b, c, d}, lbl]Labeled[Framed[{a, b, c, d}], lbl]Labeled[Framed[{a, b, c, d}], lbl, Left]Labeled[Framed[{a, b, c, d}], {xxx, yyy}, {Left, Top}]Scope (5)
Labeled[Graphics[Circle[]], Text["a circle"]]Labeled[Slider[], "slider"]Labeled[Slider[], "slider", Left]Labeled[Framed[{a, b, c}], Checkbox[]]Control the placement of labels:
g = Graphics[Circle[], ImageSize -> 50];Labeled[g, lbl]Put the label at the bottom, aligned left:
Labeled[g, lbl, {{Bottom, Left}}]Put the label on the right, aligned at the top:
Labeled[g, lbl, {{Right, Top}}]d = Graphics[Circle[], ImageSize -> 20];Labeled[30!, {d, d, d}, {Top, Bottom, Left}]Options (18)
Alignment (1)
Background (1)
BaselinePosition (1)
ContentSize (1)
Editable (2)
Frame (1)
FrameMargins (2)
Table[Labeled[{1, 2, 3, 4}, lbl, Frame -> True, FrameMargins -> m], {m, {0, 10, 20}}]FrameMargins also increases the area to which Background applies:
Table[Labeled[{1, 2, 3, 4}, lbl, Frame -> True, Background -> StandardBlue, FrameMargins -> m], {m, {0, 10, 20}}]FrameStyle (1)
ImageMargins (1)
LabelStyle (2)
Labeled[{1, 2, 3, 4}, "label", LabelStyle -> Red]Use Directive to specify compound styles:
Labeled[{1, 2, 3, 4}, "label", LabelStyle -> Directive[Bold, FontFamily -> "Helvetica"]]RotateLabel (1)
RoundingRadius (1)
Spacings (3)
Add horizontal spacing between the expression and the label:
Column@Table[Framed@Labeled[{1, 2, 3, 4}, "label", Right, Spacings -> s], {s, {0, 5, 10}}]Table[Framed@Labeled[{1, 2, 3, 4}, "label", Spacings -> {Automatic, s}], {s, {0, 5, 10}}]Use both vertical and horizontal spacing:
Labeled[Framed[{a, b, c, d}], {x, y}, {Right, Bottom}, Spacings -> {7, 3}]Applications (2)
Label images with checkboxes, potentially for later processing:
Table[Labeled[ArrayPlot[CellularAutomaton[i, {{1}, 0}, {30, All}], ImageSize -> Small], Checkbox[]], {i, 20, 23}]DynamicModule[{c}, Labeled[Graphics[{Dynamic[c], Disk[]}, ImageSize -> Tiny], Toggler[Dynamic[c], Reverse /@ ColorData["HTML", "ColorRules"], ImageSize -> Automatic]]]Neat Examples (2)
NestList[Labeled[#, {a, b}, {Top, Left}]&, x, 5]NestList[Labeled[#, {a, b, c}, {Top, Left, Right}]&, x, 5]NestList[Labeled[#, {#, #, #, #}, All]&, x, 2]NestList[Labeled[#, {#, #}, All]&, x, 3]NestList[Labeled[#, {#, #}, All]&, Checkbox[], 3]Tech Notes
Related Guides
-
▪
- Viewers and Annotation ▪
- Graph Visualization ▪
- Chart Labeling, Legending & Annotation ▪
- Graph Styling, Labeling, and Layout ▪
- User Interface Structuring & Layout ▪
- Annotating & Combining Graphics ▪
- Labels ▪
- Chart Styling & Layout ▪
- Data Visualization ▪
- Function Visualization ▪
- Palettes ▪
- Graphics Annotation & Appearance ▪
- Standalone Interfaces
History
Introduced in 2007 (6.0) | Updated in 2008 (7.0) ▪ 2019 (12.0)
Text
Wolfram Research (2007), Labeled, Wolfram Language function, https://reference.wolfram.com/language/ref/Labeled.html (updated 2019).
CMS
Wolfram Language. 2007. "Labeled." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Labeled.html.
APA
Wolfram Language. (2007). Labeled. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Labeled.html
BibTeX
@misc{reference.wolfram_2026_labeled, author="Wolfram Research", title="{Labeled}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Labeled.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_labeled, organization={Wolfram Research}, title={Labeled}, year={2019}, url={https://reference.wolfram.com/language/ref/Labeled.html}, note=[Accessed: 13-June-2026]}