is an option for graphics functions that specifies whether axes should be drawn.
Axes
is an option for graphics functions that specifies whether axes should be drawn.
Details
- Axes->True draws all axes.
- Axes->False draws no axes.
- Axes->{False,True} draws a
axis but no
axis in two dimensions. - In two dimensions, axes are drawn to cross at the position specified by the option AxesOrigin. »
- In three dimensions, axes are drawn on the edges of the bounding box specified by the option AxesEdge. »
Examples
open all close allBasic Examples (4)
Graphics[Circle[], Axes -> True]Graphics3D[Cylinder[], Axes -> True]Plot[Sin[x], {x, 0, 10}, Axes -> {True, False}]Plot3D[Sin[x y], {x, 0, 3}, {y, 0, 3}, Axes -> {False, False, True}]Specify overall axes style, including axes labels, ticks, and tick labels, using AxesStyle:
Plot[Sinc[x], {x, 0, 10}, AxesLabel -> {x, y}, AxesStyle -> Directive[Orange, 12]]Scope (12)
Axes Positions (5)
Determine AxesOrigin automatically:
Graphics[Circle[], Axes -> True, AxesOrigin -> Automatic]Plot[Sin[x], {x, 0, 2Pi}, AxesOrigin -> Automatic]Specify AxesOrigin explicitly:
Graphics[Circle[], Axes -> True, AxesOrigin -> {0, -1}]Plot[Sin[x], {x, 0, 2Pi}, AxesOrigin -> {Pi, 0}]In 3D, axes are drawn on the bounding box edges:
Graphics3D[Cylinder[], Axes -> True]Plot3D[Sin[x y], {x, 0, Pi}, {y, 0, Pi}]Choose the bounding box edges automatically to draw the axes:
Graphics3D[Cylinder[], Axes -> True, AxesEdge -> Automatic]Specify the edges explicitly, using AxesEdge:
{Graphics3D[Cylinder[], Axes -> True, AxesEdge -> {{-1, 1}, None, None}],
Graphics3D[Cylinder[], Axes -> True, AxesEdge -> {None, {1, -1}, None}],
Graphics3D[Cylinder[], Axes -> True, AxesEdge -> {None, None, {1, -1}}]}Axes Styling (2)
Specify the style of each axis:
Plot[Sinc[x], {x, 0, 10}, AxesStyle -> {Directive[Red, 12], Blue}]Graphics3D[Cylinder[], Axes -> True, AxesStyle -> {Red, Green, Blue}]Display the axes without the bounding box:
Graphics3D[Cylinder[], Axes -> True, Boxed -> False]Axes Labels and Ticks (5)
Specify a label for each axis:
Plot[Sinc[x], {x, 0, 10}, AxesLabel -> {x, Sin[x]}]Use labels based on variables specified in Plot3D:
Plot3D[Sin[θ ρ], {θ, 0, 3}, {ρ, 0, 3}, AxesLabel -> Automatic]Draw the axes but no tick marks:
Plot[Sin[x], {x, 0, 10}, Ticks -> None]Place tick marks automatically:
Plot[Sin[x], {x, 0, 10}, Ticks -> Automatic]Draw tick marks at the specified positions:
Plot[Sin[x], {x, 0, 10}, Ticks -> {{0, Pi, 2Pi, 3Pi}, {-1, 1}}]Plot3D[Sin[x y], {x, 0, Pi}, {y, 0, Pi}, Ticks -> {{0, Pi / 2, Pi}, {0, Pi / 2, Pi}, {-1, 0, 1}}]Properties & Relations (5)
In 2D, the axes are drawn above the graphics:
Graphics[{Pink, Disk[]}, Axes -> True]Objects in Epilog are drawn on top of any graphics, including the axes:
Graphics[{Pink, Disk[]}, Axes -> True, Epilog -> {Blue, Disk[{0, 0}, .5]}]If the option Frame is set to True, the ticks are drawn on the edges of the frame:
Graphics[Circle[], Frame -> True, Axes -> True]GridLines puts grids across the image:
Graphics[Circle[], GridLines -> Automatic, Axes -> True]FaceGrids puts grids on the faces of the bounding box in 3D:
Graphics3D[Cylinder[], FaceGrids -> All, Axes -> True]By default, DensityPlot and related functions display the frame, instead of the axes:
DensityPlot[x Sin[y], {x, -5, 5}, {y, -5, 5}]Possible Issues (1)
Tech Notes
Related Guides
History
Introduced in 1988 (1.0)
Text
Wolfram Research (1988), Axes, Wolfram Language function, https://reference.wolfram.com/language/ref/Axes.html.
CMS
Wolfram Language. 1988. "Axes." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Axes.html.
APA
Wolfram Language. (1988). Axes. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Axes.html
BibTeX
@misc{reference.wolfram_2026_axes, author="Wolfram Research", title="{Axes}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Axes.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_axes, organization={Wolfram Research}, title={Axes}, year={1988}, url={https://reference.wolfram.com/language/ref/Axes.html}, note=[Accessed: 15-June-2026]}