is an option for Graphics, Manipulate, and related functions that specifies labels to be placed on the edges of a frame.
FrameLabel
is an option for Graphics, Manipulate, and related functions that specifies labels to be placed on the edges of a frame.
Details
- FrameLabel->None specifies that no labels should be given.
- FrameLabel->label specifies a label for the bottom edge of the frame.
- FrameLabel->{bottom,left} specifies labels for the bottom and left‐hand edges of the frame.
- FrameLabel->{{left,right},{bottom,top}} specifies labels for each of the edges of the frame.
- Any expression can be specified as a label. It will be given by default in TraditionalForm. Arbitrary strings of text can be given as "text". »
- Labels for the vertical edges of the frame are by default written vertically. RotateLabel->False specifies that they should be horizontal.
Examples
open all close allBasic Examples (4)
Place labels on the bottom edge of the frame:
Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> x]Place labels on the bottom and left frame edges:
Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {x, y}]Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {{y, Sin[x]}, {x, "plot"}}]Overall style of all the label-like elements can be specified by LabelStyle:
Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {x, y}, LabelStyle -> Directive[Red, Bold]]Scope (3)
Labels use TraditionalForm by default:
Graphics[Circle[], Frame -> True, FrameLabel -> {x, y}]Use StandardForm instead:
Graphics[Circle[], Frame -> True, FrameLabel -> {StandardForm[x], StandardForm[y]}]Individually styled labels can be used together with LabelStyle, and have higher priority:
Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {Style[x, Bold, Red], Style[y, Bold, Blue]}, LabelStyle -> Directive[Orange, Medium]]Generalizations & Extensions (3)
Specify frame labels for Manipulate:
Manipulate[x, {x, 0, 1}, FrameLabel -> {{a, b}, {c, d}}]Use labels based on variables specified in ContourPlot and DensityPlot:
ContourPlot[ρ Sin[θ], {ρ, -5, 5}, {θ, -5, 5}, FrameLabel -> Automatic]DensityPlot[ρ Sin[θ], {ρ, -5, 5}, {θ, -5, 5}, FrameLabel -> Automatic]Use graphics as a frame label:
Plot[Sin[x], {x, 0, 2Pi}, Frame -> True, FrameLabel -> Table[Graphics[{Arrowheads[Medium], Arrow[{{0, 0}, {1, 0}}]}, AspectRatio -> 1 / 4, ImageSize -> 40], {2}]]Applications (1)
Use ColorData image as a label:
l = Show[ColorData["SunsetColors", "Image"], ImageSize -> 120, Frame -> True, FrameTicks -> {{None, None}, {{{0, "Low"}, {1, "High"}}, None}}]DensityPlot[x + Sin[x y], {x, 0, 6}, {y, -3, 3}, ColorFunction -> "SunsetColors", FrameLabel -> l]Properties & Relations (3)
The overall output format can be specified using FormatType:
Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {x, Sin[x]}, FormatType -> StandardForm]Vertical frame labels are rotated in graphics, by default:
Graphics[Circle[], Frame -> True, FrameLabel -> {{left, right}, {None, None}}]Vertical frame labels are not rotated in Manipulate, by default:
Manipulate[x, {x, 0, 1}, FrameLabel -> {{left, right}, {None, None}}]The vertical label rotation can be specified using RotateLabel:
Graphics[Circle[], Frame -> True, FrameLabel -> {None, "y-axis"}, RotateLabel -> False]Possible Issues (1)
Neat Examples (1)
Control the ellipse with the sliders:
Graphics[{StandardPink, EdgeForm[ThemeColor["Foreground"]], Dynamic@Disk[{0, 0}, {r, s}]}, PlotRange -> 10, Frame -> True, ImageSize -> 300, FrameLabel -> {Slider[Dynamic[r], {1, 10}], VerticalSlider[Dynamic[s], {1, 10}]}, RotateLabel -> False]See Also
Frame Labeled AxesLabel PlotLabel FrameTicks LabelStyle FrameStyle
Tech Notes
Related Workflows
- Put a Frame around a Cell
History
Introduced in 1991 (2.0) | Updated in 2007 (6.0)
Text
Wolfram Research (1991), FrameLabel, Wolfram Language function, https://reference.wolfram.com/language/ref/FrameLabel.html (updated 2007).
CMS
Wolfram Language. 1991. "FrameLabel." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/FrameLabel.html.
APA
Wolfram Language. (1991). FrameLabel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FrameLabel.html
BibTeX
@misc{reference.wolfram_2026_framelabel, author="Wolfram Research", title="{FrameLabel}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/FrameLabel.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_framelabel, organization={Wolfram Research}, title={FrameLabel}, year={2007}, url={https://reference.wolfram.com/language/ref/FrameLabel.html}, note=[Accessed: 13-June-2026]}