Plot3D
Usage
• Plot3D[f, x, xmin, xmax , y, ymin, ymax ] 产生一个 x和 y的函数 f 的三维图形。
Notes
• Plot3D 以非标准方式计算它的自变量(参见 A.4.2节)。如果这在指定数值被得到前安全的进行的话,应当使用 Evaluate计算要绘制的函数。 • Plot3D 和SurfaceGraphics有相同的选项,下面是附加选项:
| "\!\(\*StyleBox[\"\\\"Compiled\\\"\", \"MR\"]\) " | "\!\(\*StyleBox[\"\\\"True\\\"\", \"MR\"]\) " | 是否编译要绘制的函数 | | "\!\(\*StyleBox[\"\\\"PlotPoints\\\"\", \"MR\"]\) " | "\!\(\*StyleBox[\"\\\"15\\\"\", \"MR\"]\) " | 每个方向的样本点的数目 |
• Plot3D 有缺省选项设置 Axes -> True. • Plot3D 返回一个 SurfaceGraphics 对象. • 函数 f 应当对它被计算的x和y的所有值给出一个实数。对 f 并不产生一个实数的任何x和 y 的值,这儿都有一个洞。 • 如果指定Lighting->False 和非阴影函数s,曲面根据高度阴影化。阴影由选项ColorFunction确定;缺省是灰度级。
• 阴影函数 s 必须产生 GrayLevel, Hue 或 RGBColor 指令, 或 SurfaceColor对象. • Plot3D 包括对它返回的对象SurfaceGraphics中的选项MeshRange的一个设置。 • 参见 Mathematica 全书 : 节 1.9.7.
Further Examples
Here are two three-dimensional surface plots; the second has with a few options set. You can see all the possible options and their default settings with Options[Plot3D]]. Evaluate the cells to see the graphics.
In[1]:=
|
In[2]:=
|
|