Mathematica基础——关于坐标轴

几何画图,坐标轴的感化是不成轻忽的。

这里,专门讲一下Mathematica对坐标轴的处置方式。

东西/原料

  • 电脑
  • Mathematica

Axes

  1. 1

    坐标轴可以显示,也可以埋没,别离以Axes->True、Axes->False来节制:

    Graphics[SSSTriangle[3,4,5], Axes -> True]

    Graphics3D[Triangle[{{0,0,0},{0,1,3},{5,2,0}}], Axes ->False]

  2. 2

    x轴、y轴、z轴可以别离自力操作。

    只显示x轴:

    Graphics[SSSTriangle[3,4,5],Axes ->{ True,False}]

    埋没x、z轴:

    Graphics3D[Triangle[{{0,0,0},{0,1,3},{5,2,0}}],Axes ->{False, True,False}]

  3. 3

    用AxesLabel给坐标轴加上标签:

    Plot[Sinc[x], {x, 0, 10},AxesLabel -> {x, Sinc[x]}]

    Plot3D[Sin[x] Cos[y], {x, 0, 10},{y, 0, 10},AxesLabel -> {x轴,y轴,z轴}]

  4. 4

    用AxesStyle改变坐标轴的样式:

    Plot[Sinc[x], {x, 0, 10}, AxesStyle -> {Directive[Darker@Green, 12],Red}]

    Plot3D[Sin[x] Cos[y], {x, 0, 10},{y, 0, 10},      AxesStyle ->{Red,Green,Blue}, AxesLabel -> {x轴,y轴,z轴}]

  5. 5

    用Ticks指心猿意马坐标轴的刻度值:

    Plot[Sinc[x], {x, 0, 10}, AxesStyle -> {Directive[Darker@Green, 12],Red},      Ticks -> {{0, Pi, 2 Pi, 3 Pi}, {-1, 1}}]

    Plot3D[Sin[x] Cos[y], {x, 0, 10},{y, 0, 10},     AxesStyle ->{Red,Green,Blue}, AxesLabel -> {x轴,y轴,z轴},           Ticks -> {{0,2,4,6,8,10},{1,3,5,7,9}, {-1, 1}}]

AxesEdge

  • AxesEdge可以把坐标轴集中到一个起点上:

    Plot3D[Sin[x] Cos[y], {x, 0, 10},{y, 0, 10},     AxesEdge -> {{ 0, 10},{0, 10}, {-1, -1}}, Mesh -> None,            PlotStyle -> Opacity[.5], Boxed -> False]

AxesOrigin

  • AxesOrigin指心猿意马了坐标轴原点的位置。

    以{Pi, 0}为原点:

    Plot[Sinc[x], {x, 0, 10}, AxesStyle -> {Directive[Darker@Green, 12],Red},

           AxesOrigin -> {Pi, 0}]

    以{Pi, 8,0}为原点:

    Plot3D[Sin[x] Cos[y], {x, 0, 10},{y, 0, 10},      AxesStyle ->{Red,Green,Blue},  AxesOrigin -> {Pi, 8,0}]

PolarAxes

  • 绘制极坐标函数的图像的时辰,PolarAxes可以指心猿意马极坐标轴:

    PolarPlot[Sin[3 t], {t, 0, Pi}, PolarAxes -> Automatic,

          PolarTicks -> {"Degrees", Automatic}]

注重事项

  • 坐标轴的选项还有良多,大师可以本身找找看。
  • 发表于 2018-08-14 00:00
  • 阅读 ( 1334 )
  • 分类:其他类型

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
admin
admin

0 篇文章

作家榜 »

  1. xiaonan123 189 文章
  2. 汤依妹儿 97 文章
  3. luogf229 46 文章
  4. jy02406749 45 文章
  5. 小凡 34 文章
  6. Daisy萌 32 文章
  7. 我的QQ3117863681 24 文章
  8. 华志健 23 文章

联系我们:uytrv@hotmail.com 问答工具