WOLFRAM

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.

Details and Options

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Create a label:

Out[1]=1
Out[2]=2

Label on the left:

Out[1]=1

Label on the left and top:

Out[2]=2

Scope  (5)Survey of the scope of standard use cases

Label a graphic:

Out[1]=1

Label a slider:

Out[1]=1
Out[2]=2

Use a checkbox as a label:

Out[1]=1

Control the placement of labels:

Out[2]=2

Put the label at the bottom, aligned left:

Out[3]=3

Put the label on the right, aligned at the top:

Out[4]=4

Use graphics as labels:

Out[2]=2

Options  (18)Common values & functionality for each option

Alignment  (1)

Adjust the alignment of the labeled expression:

Out[1]=1

Background  (1)

Change the overall background color:

Out[1]=1

BaselinePosition  (1)

Align with surrounding text:

Out[1]=1

ContentSize  (1)

Specify the overall size:

Out[1]=1

Editable  (2)

By default, editing of labels and expressions is allowed:

Out[1]=1

Disallow editing:

Out[1]=1

Frame  (1)

Frame only the expression, not the label:

Out[1]=1

FrameMargins  (2)

Add space within the frame:

Out[1]=1

FrameMargins also increases the area to which Background applies:

Out[1]=1

FrameStyle  (1)

Change the color of the frame:

Out[1]=1

ImageMargins  (1)

Add margins around the labeled expression:

Out[1]=1

Specify different margins for each side:

Out[2]=2

LabelStyle  (2)

Style the label:

Out[1]=1

Use Directive to specify compound styles:

Out[1]=1

RotateLabel  (1)

Rotate vertical labels:

Out[1]=1

RoundingRadius  (1)

Round the corners of the frame:

Out[1]=1

Spacings  (3)

Add horizontal spacing between the expression and the label:

Out[1]=1

Specify vertical spacing:

Out[1]=1

Use both vertical and horizontal spacing:

Out[1]=1

Applications  (2)Sample problems that can be solved with this function

Label images with checkboxes, potentially for later processing:

Out[1]=1

Create an active label:

Out[1]=1

Neat Examples  (2)Surprising or curious use cases

Out[1]=1
Out[2]=2
Out[1]=1
Out[2]=2
Out[3]=3
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 ]}

@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 ]}

@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 ]}