Labeled
✖
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 allclose allBasic Examples (2)Summary of the most common use cases
In[1]:=1
✖
https://wolfram.com/xid/0cq0fmzl-d9sh9x
Out[1]=1
In[2]:=2
✖
https://wolfram.com/xid/0cq0fmzl-ch1h64
Out[2]=2
In[1]:=1
✖
https://wolfram.com/xid/0cq0fmzl-f8qwyr
Out[1]=1
In[2]:=2
✖
https://wolfram.com/xid/0cq0fmzl-eav5n2
Out[2]=2
Scope (5)Survey of the scope of standard use cases
In[1]:=1
✖
https://wolfram.com/xid/0cq0fmzl-rkslvy
Out[1]=1
In[1]:=1
✖
https://wolfram.com/xid/0cq0fmzl-hew5xk
Out[1]=1
In[2]:=2
✖
https://wolfram.com/xid/0cq0fmzl-ft335h
Out[2]=2
In[1]:=1
✖
https://wolfram.com/xid/0cq0fmzl-mriza7
Out[1]=1
Control the placement of labels:
In[1]:=1
✖
https://wolfram.com/xid/0cq0fmzl-b49rco
In[2]:=2
✖
https://wolfram.com/xid/0cq0fmzl-blfcxu
Out[2]=2
Put the label at the bottom, aligned left:
In[3]:=3
✖
https://wolfram.com/xid/0cq0fmzl-d6jc9y
Out[3]=3
Put the label on the right, aligned at the top:
In[4]:=4
✖
https://wolfram.com/xid/0cq0fmzl-dix4q
Out[4]=4
In[1]:=1
✖
https://wolfram.com/xid/0cq0fmzl-mhgxc6
In[2]:=2
✖
https://wolfram.com/xid/0cq0fmzl-l9idi2
Out[2]=2
Options (18)Common values & functionality for each option
Alignment (1)
Background (1)
BaselinePosition (1)
ContentSize (1)
Editable (2)
Frame (1)
FrameMargins (2)
In[1]:=1
✖
https://wolfram.com/xid/0cq0fmzl-mr7nqh
Out[1]=1
FrameMargins also increases the area to which Background applies:
In[1]:=1
✖
https://wolfram.com/xid/0cq0fmzl-botthp
Out[1]=1
FrameStyle (1)
ImageMargins (1)
LabelStyle (2)
In[1]:=1
✖
https://wolfram.com/xid/0cq0fmzl-e57co
Out[1]=1
Use Directive to specify compound styles:
In[1]:=1
✖
https://wolfram.com/xid/0cq0fmzl-ezuz2w
Out[1]=1
RoundingRadius (1)
Applications (2)Sample problems that can be solved with this function
Neat Examples (2)Surprising or curious use cases
Wolfram Research (2007), Labeled, Wolfram Language function, https://reference.wolfram.com/language/ref/Labeled.html (updated 2019).
✖
Wolfram Research (2007), Labeled, Wolfram Language function, https://reference.wolfram.com/language/ref/Labeled.html (updated 2019).
Text
Wolfram Research (2007), Labeled, Wolfram Language function, https://reference.wolfram.com/language/ref/Labeled.html (updated 2019).
✖
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.
✖
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
✖
Wolfram Language. (2007). Labeled. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Labeled.html
BibTeX
✖
@misc{reference.wolfram_2024_labeled, author="Wolfram Research", title="{Labeled}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Labeled.html}", note=[Accessed: 11-January-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2024_labeled, organization={Wolfram Research}, title={Labeled}, year={2019}, url={https://reference.wolfram.com/language/ref/Labeled.html}, note=[Accessed: 11-January-2025
]}