是图形函数的一个选项,用以指定是否应该画出坐标轴.
Axes
是图形函数的一个选项,用以指定是否应该画出坐标轴.
范例
打开所有单元 关闭所有单元基本范例 (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}]用 AxesStyle 指定所有坐标轴的风格,包括坐标轴的标记,刻度和刻度标记:
Plot[Sinc[x], {x, 0, 10}, AxesLabel -> {x, y}, AxesStyle -> Directive[Orange, 12]]范围 (12)
轴的定位 (5)
自动确定 AxesOrigin:
Graphics[Circle[], Axes -> True, AxesOrigin -> Automatic]Plot[Sin[x], {x, 0, 2Pi}, AxesOrigin -> Automatic]明确指定 AxesOrigin:
Graphics[Circle[], Axes -> True, AxesOrigin -> {0, -1}]Plot[Sin[x], {x, 0, 2Pi}, AxesOrigin -> {Pi, 0}]Graphics3D[Cylinder[], Axes -> True]Plot3D[Sin[x y], {x, 0, Pi}, {y, 0, Pi}]Graphics3D[Cylinder[], Axes -> True, AxesEdge -> Automatic]用 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}}]}轴的风格 (2)
轴的标记和刻度 (5)
Plot[Sinc[x], {x, 0, 10}, AxesLabel -> {x, Sin[x]}]用 Plot3D 中的指定变量作为标记:
Plot3D[Sin[θ ρ], {θ, 0, 3}, {ρ, 0, 3}, AxesLabel -> Automatic]Plot[Sin[x], {x, 0, 10}, Ticks -> None]Plot[Sin[x], {x, 0, 10}, Ticks -> Automatic]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}}]属性和关系 (5)
Graphics[{Pink, Disk[]}, Axes -> True]Epilog 中的对象被画在所有图形的上面,包括坐标轴:
Graphics[{Pink, Disk[]}, Axes -> True, Epilog -> {Blue, Disk[{0, 0}, .5]}]如果选项 Frame 设定为 True,则刻度被画在框架的边上:
Graphics[Circle[], Frame -> True, Axes -> True]GridLines 在图像上绘制网格:
Graphics[Circle[], GridLines -> Automatic, Axes -> True]在三维空间内,FaceGrids 在边界框的表面绘制网格:
Graphics3D[Cylinder[], FaceGrids -> All, Axes -> True]缺省情况下, DensityPlot 以及相关的函数仅显示出框架,而不显示坐标轴:
DensityPlot[x Sin[y], {x, -5, 5}, {y, -5, 5}]可能存在的问题 (1)
历史
1988年引入 (1.0)
文本
Wolfram Research (1988),Axes,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Axes.html.
CMS
Wolfram 语言. 1988. "Axes." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/Axes.html.
APA
Wolfram 语言. (1988). Axes. Wolfram 语言与系统参考资料中心. 追溯自 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-August-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-August-2026]}