WOLFRAM

LabeledGraphicsBox
LabeledGraphicsBox

Unsupported in CloudNew in 14.2

is a low-level construct that represents a graphics box with a label attached to it.

LabeledGraphicsBox[box,lbl,pos]

places lbl at a position specified by pos.

LabeledGraphicsBox[box,{lbl1,lbl2,},{pos1,pos2,}]

places the lbli at positions posi.

Details and Options

Examples

open allclose all

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

A 2D labeled graphic:

Out[1]=1

A 3D labeled graphic:

Out[1]=1

Label positioned at the left of a graphic:

Out[1]=1

A label on the left and a label at the top:

Out[1]=1

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

Label Content  (6)

Label a graphic:

Out[1]=1

Label a 3D graphic:

Out[1]=1

Use a checkbox as a label:

Out[1]=1

Use a checkbox as a label for a 3D graphic:

Out[1]=1

Use graphics as labels:

Out[2]=2

Use 3D graphics as labels:

Out[2]=2

Label Placement  (4)

Control the placement of labels:

Out[1]=1

Place the label at the bottom, aligned to the left:

Out[1]=1

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

Out[1]=1

A label on the right aligned to the top compared to a label at the top aligned to the right:

Out[1]=1

Box Usage  (5)

Create a nested LabeledGraphicsBox:

Out[1]=1

Use a LabeledGraphicsBox as a label:

Out[1]=1

Use multiple levels of nested LabeledGraphicsBox instances using nested LabeledGraphicsBox instances as labels:

Out[1]=1

Use LabeledGraphicsBox as an Inset:

Out[1]=1

Use LabeledGraphicsBox as an Inset in a 3D graphic:

Out[1]=1

Options  (15)Common values & functionality for each option

Background  (1)

Change the overall background color:

Out[1]=1

BaselinePosition  (1)

Align with surrounding text:

Out[1]=1

BaseStyle  (1)

Set the starting style:

Out[1]=1

ContentSelectable  (1)

By default, editing of labels and expressions is allowed:

Out[1]=1

Disallow editing:

Out[2]=2

ImageMargins  (1)

Add margins around the labeled expression:

Out[1]=1

Specify different margins for each side:

Out[2]=2

ImageSize  (1)

The image size by default is the size of the inner graphic plus the space for the labels:

Out[1]=1

Giving explicit values to ImageSize resizes the inner graphic to fill the available space:

Out[2]=2

ImageSize resizes the inner graphic even if it has an explicitly larger size:

Out[3]=3

LabelStyle  (1)

Style the labels:

Out[1]=1

RotateLabel  (4)

Specify that the label should be rotated:

Out[1]=1

Rotate the label to a particular angle in degrees:

Out[1]=1

Rotate the label to a particular angle using radians:

Out[2]=2

Specify custom rotations for the different labels:

Out[1]=1

Rotate nested labels:

Out[1]=1

Spacings  (4)

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

Dynamically update the rotation of the labels:

Out[1]=1
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
Wolfram Research (2025), LabeledGraphicsBox, Wolfram Language function, https://reference.wolfram.com/language/ref/LabeledGraphicsBox.html.
Wolfram Research (2025), LabeledGraphicsBox, Wolfram Language function, https://reference.wolfram.com/language/ref/LabeledGraphicsBox.html.

Text

Wolfram Research (2025), LabeledGraphicsBox, Wolfram Language function, https://reference.wolfram.com/language/ref/LabeledGraphicsBox.html.

Wolfram Research (2025), LabeledGraphicsBox, Wolfram Language function, https://reference.wolfram.com/language/ref/LabeledGraphicsBox.html.

CMS

Wolfram Language. 2025. "LabeledGraphicsBox." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LabeledGraphicsBox.html.

Wolfram Language. 2025. "LabeledGraphicsBox." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LabeledGraphicsBox.html.

APA

Wolfram Language. (2025). LabeledGraphicsBox. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LabeledGraphicsBox.html

Wolfram Language. (2025). LabeledGraphicsBox. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LabeledGraphicsBox.html

BibTeX

@misc{reference.wolfram_2024_labeledgraphicsbox, author="Wolfram Research", title="{LabeledGraphicsBox}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/LabeledGraphicsBox.html}", note=[Accessed: 24-January-2025 ]}

@misc{reference.wolfram_2024_labeledgraphicsbox, author="Wolfram Research", title="{LabeledGraphicsBox}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/LabeledGraphicsBox.html}", note=[Accessed: 24-January-2025 ]}

BibLaTeX

@online{reference.wolfram_2024_labeledgraphicsbox, organization={Wolfram Research}, title={LabeledGraphicsBox}, year={2025}, url={https://reference.wolfram.com/language/ref/LabeledGraphicsBox.html}, note=[Accessed: 24-January-2025 ]}

@online{reference.wolfram_2024_labeledgraphicsbox, organization={Wolfram Research}, title={LabeledGraphicsBox}, year={2025}, url={https://reference.wolfram.com/language/ref/LabeledGraphicsBox.html}, note=[Accessed: 24-January-2025 ]}