LabeledGraphicsBox
✖
LabeledGraphicsBox
is a low-level construct that represents a graphics box with a label attached to it.
Details and Options


- LabeledGraphicsBox is one possible low-level representation of Labeled. Except for low-level notebook expression manipulation, LabeledGraphicsBox should not need to be used directly.
- box must be a GraphicsBox, Graphics3DBox or a LabeledGraphicsBox.
- Selecting a LabeledGraphicsBox will result in a graphics-style selection with resize handles that can be used to resize the whole construct.
- Resizing a LabeledGraphicsBox will automatically resize box to use the full available space, minus the space required to draw labels.
- 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.
- The effective default for pos is normally Bottom.
- The following options can be given:
-
BaselinePosition Automatic the position of the base line for the box BaseStyle "LabeledGraphics" base style specifications for the whole box DefaultLabelStyle "LabeledGraphicsLabel" base style specifications for the whole box ImageMargins 0 margins to add outside the display area ImageSize Automatic the overall image size of the box LabelStyle Automatic style specification for the lbli Spacings Automatic horizontal and vertical label spacings - ImageSizeAutomatic will cause LabeledGraphicsBox to display box at its specified size and add additional space as needed to fit the lbli. Other values will set the absolute size of the entire construct and resize box automatically to fit in the available space.
- LabeledGraphicsBox is used in the typesetting of some Labeled constructs.
Examples
open allclose allBasic Examples (4)Summary of the most common use cases

https://wolfram.com/xid/0bnis7gsrrc9y-gj9fz


https://wolfram.com/xid/0bnis7gsrrc9y-gak8nh

Label positioned at the left of a graphic:

https://wolfram.com/xid/0bnis7gsrrc9y-ccxcgh

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

https://wolfram.com/xid/0bnis7gsrrc9y-yh9i73

Scope (15)Survey of the scope of standard use cases
Label Content (6)

https://wolfram.com/xid/0bnis7gsrrc9y-rkslvy


https://wolfram.com/xid/0bnis7gsrrc9y-8a0yhg


https://wolfram.com/xid/0bnis7gsrrc9y-f4x8u7

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

https://wolfram.com/xid/0bnis7gsrrc9y-edilrb


https://wolfram.com/xid/0bnis7gsrrc9y-mhgxc6

https://wolfram.com/xid/0bnis7gsrrc9y-l9idi2


https://wolfram.com/xid/0bnis7gsrrc9y-vl0et4

https://wolfram.com/xid/0bnis7gsrrc9y-84wa2b

Label Placement (4)
Control the placement of labels:

https://wolfram.com/xid/0bnis7gsrrc9y-blfcxu

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

https://wolfram.com/xid/0bnis7gsrrc9y-d6jc9y

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

https://wolfram.com/xid/0bnis7gsrrc9y-dix4q

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

https://wolfram.com/xid/0bnis7gsrrc9y-kxxoep

Box Usage (5)
Create a nested LabeledGraphicsBox:

https://wolfram.com/xid/0bnis7gsrrc9y-8x6rb5

Use a LabeledGraphicsBox as a label:

https://wolfram.com/xid/0bnis7gsrrc9y-7v600b

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

https://wolfram.com/xid/0bnis7gsrrc9y-cnt1ei

Use LabeledGraphicsBox as an Inset:

https://wolfram.com/xid/0bnis7gsrrc9y-l7vmps

Use LabeledGraphicsBox as an Inset in a 3D graphic:

https://wolfram.com/xid/0bnis7gsrrc9y-omdnek

Options (15)Common values & functionality for each option
Background (1)
BaselinePosition (1)
BaseStyle (1)
ContentSelectable (1)
ImageMargins (1)
ImageSize (1)
The image size by default is the size of the inner graphic plus the space for the labels:

https://wolfram.com/xid/0bnis7gsrrc9y-4v1se8

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

https://wolfram.com/xid/0bnis7gsrrc9y-c948e0

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

https://wolfram.com/xid/0bnis7gsrrc9y-x91fa8

RotateLabel (4)
Specify that the label should be rotated:

https://wolfram.com/xid/0bnis7gsrrc9y-l6qjmg

Rotate the label to a particular angle in degrees:

https://wolfram.com/xid/0bnis7gsrrc9y-m548lm

Rotate the label to a particular angle using radians:

https://wolfram.com/xid/0bnis7gsrrc9y-sryzwv

Specify custom rotations for the different labels:

https://wolfram.com/xid/0bnis7gsrrc9y-cegxq7


https://wolfram.com/xid/0bnis7gsrrc9y-46ctax

Spacings (4)
Add horizontal spacing between the expression and the label:

https://wolfram.com/xid/0bnis7gsrrc9y-s80eep


https://wolfram.com/xid/0bnis7gsrrc9y-ij9942

Use both vertical and horizontal spacing:

https://wolfram.com/xid/0bnis7gsrrc9y-jw2rf

Dynamically update the rotation of the labels:

https://wolfram.com/xid/0bnis7gsrrc9y-eejb6c


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_2025_labeledgraphicsbox, author="Wolfram Research", title="{LabeledGraphicsBox}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/LabeledGraphicsBox.html}", note=[Accessed: 18-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_labeledgraphicsbox, organization={Wolfram Research}, title={LabeledGraphicsBox}, year={2025}, url={https://reference.wolfram.com/language/ref/LabeledGraphicsBox.html}, note=[Accessed: 18-March-2025
]}