AxesEdge
是一个用于三维图形函数的选项,指定应该绘制边界框的哪条边.
更多信息
- AxesEdge->{{diry,dirz},{dirx,dirz},{dirx,diry}} 指定绘制轴在边界框的三个边. diri 必须是 +1 或 -1,并且指定在边界框的旁边是否分别添加一个或大或小的坐标值 i.
- 缺省值 AxesEdge->Automatic 自动选择应该在边界框的哪些显示边上绘制轴.
- AxesEdge 设置中的任意对 {diri,dirj},都可以被 Automatic 替代,来指定自动选择的相应轴的位置.
- 任意对 {diri,dirj} 都可以被 None 替代,这种情况下不必绘制出相应的轴.
- 如果明确指定绘制的轴所在的边,则不论这条边从您所选择的视点是否可见,该坐标轴都将被画在该边上.
范例
打开所有单元 关闭所有单元基本范例 (3)
Graphics3D[Cylinder[], Axes -> True, AxesEdge -> Automatic]Plot3D[Sin[x y], {x, 0, Pi}, {y, 0, Pi}, AxesEdge -> Automatic]Graphics3D[Cylinder[], Axes -> True, AxesEdge -> {Automatic, None, Automatic}]{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)
Graphics3D[Cylinder[], Axes -> True, AxesEdge -> {{1, 1}, None, None}]Graphics3D[Cylinder[], Axes -> True, AxesEdge -> {{-1, 1}, None, None}]Table[Graphics3D[Cylinder[], Axes -> True, AxesEdge -> {None, None, e}], {e, {{1, 1}, {1, -1}, {-1, -1}, {-1, 1}}}]应用 (1)
属性和关系 (2)
用 Automatic 时,轴被置于一个可见的边界框边缘上:
Table[Graphics3D[{Cuboid[], Cuboid[{1, 1, 0}, {3, 3, 2}]}, Axes -> True, AxesEdge -> Automatic, ViewPoint -> vp], {vp, {{2, -2, 2}, {-2, 2, 2}, {2, 2, 2}}}]在二维图形中,AxesOrigin 指定绘制轴的位置:
Graphics[Circle[], Axes -> True, AxesOrigin -> {0, -1}]参见
技术笔记
-
▪
- 三维图形的标记
历史
1991年引入 (2.0)
文本
Wolfram Research (1991),AxesEdge,Wolfram 语言函数,https://reference.wolfram.com/language/ref/AxesEdge.html.
CMS
Wolfram 语言. 1991. "AxesEdge." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/AxesEdge.html.
APA
Wolfram 语言. (1991). AxesEdge. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/AxesEdge.html 年
BibTeX
@misc{reference.wolfram_2026_axesedge, author="Wolfram Research", title="{AxesEdge}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/AxesEdge.html}", note=[Accessed: 19-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_axesedge, organization={Wolfram Research}, title={AxesEdge}, year={1991}, url={https://reference.wolfram.com/language/ref/AxesEdge.html}, note=[Accessed: 19-August-2026]}