ContourPlot3D[f,{x,xmin,xmax},{y,ymin,ymax},{z,zmin,zmax}]
生成关于 x、y 和 z 的函数 f 的三维等高图.
ContourPlot3D[f==g,{x,xmin,xmax},{y,ymin,ymax},{z,zmin,zmax}]
绘制
的等值面.
ContourPlot3D[…,{x,y,z}∈reg]
将变量 {x,y,z} 置于几何区域 reg 中.
ContourPlot3D
ContourPlot3D[f,{x,xmin,xmax},{y,ymin,ymax},{z,zmin,zmax}]
生成关于 x、y 和 z 的函数 f 的三维等高图.
ContourPlot3D[f==g,{x,xmin,xmax},{y,ymin,ymax},{z,zmin,zmax}]
绘制
的等值面.
ContourPlot3D[…,{x,y,z}∈reg]
将变量 {x,y,z} 置于几何区域 reg 中.
更多信息和选项
- ContourPlot3D 也称为等值面或水平集图.
- 给定函数 f 时,ContourPlot3D 构造对应于水平面的等高面,其中 f[x,y,z] 有常值 d1,d2 等.
- 该函数会可视化集合
. - 当给定等式 f==g,ContourPlot3D 显示满足等式的 {x,y,z} 的曲面.
- 该函数会可视化集合
. - ContourPlot3D 认为变量 x、y 和 z 是局部变量,实际上等效于 Block.
- ContourPlot3D 具有属性 HoldAll 并在将数值分配给 x、y 和 z 之后求值 f 和 g. 在某些情况下,使用 Evaluate 首先符号计算 f 和 g 可能更为有效.
- ContourPlot3D 的选项与 Graphics3D 相同,并有以下补充和变化: [所有选项的列表]
-
Axes True 是否绘制坐标轴 BoundaryStyle Automatic 如何绘制区域的边界 BoxRatios {1,1,1} 三维边界框的比例 ColorFunction Automatic 如何对等值面着色 ColorFunctionScaling True 是否缩放传递给 ColorFunction 的参数 Contours Automatic 显示多少个等值面或哪几个等值面 ContourStyle White 等值面的样式 EvaluationMonitor None 每个函数计算时运行的表达式 MaxRecursion Automatic 递归子划分所允许的最大次数 Mesh Automatic 每个方向绘制的网格线的数量 MeshFunctions {#1&,#2&,#3&} 如何确定网格分区的位置 MeshShading None 如何绘制网格分区之间的阴影 MeshStyle Automatic 网格线的样式 Method Automatic 用于细化等值面的方式 NormalsFunction Automatic 如何确定曲面的有效法线 PerformanceGoal $PerformanceGoal 优化的目标 PlotLegends None 曲面的图例 PlotPoints Automatic 每个方向样本点的初始数量 PlotRange {Full,Full,Full,Automatic} 包括值的范围 PlotTheme $PlotTheme 图形的整体主题 RegionFunction (True&) 如何确定是否包含一个点 RegionBoundaryStyle Automatic 区域边界的样式 ScalingFunctions None 如何缩放单个坐标 TextureCoordinateFunction Automatic 如何确定纹理坐标 TextureCoordinateScaling True 是否缩放传递给 TextureCoordinateFunction 的参数 WorkingPrecision MachinePrecision 内部计算的精度 - ContourPlot3D 首先在由 PlotPoints 指定的等间隔的样本点的三维网格上计算 f. 然后使用一种自适应算法进行至多 MaxRecursion 次子划分,生成平滑的等值面.
- 应该认识到由于使用的样本点数量有限,ContourPlot3D 可能会丢失您的函数的部分特征. 在检测您的结果时,可以尝试提高对 PlotPoints 和 MaxRecursion 的设置.
- 提供给 MeshFunctions 和 RegionFunction 中函数的自变量是 x、y、z、f. 默认提供给 ColorFunction 和 TextureCoordinateFunction 中函数的自变量是这些自变量经过尺度缩放后的值.
- ScalingFunctions 的可能设置包括:
-
sf 缩放 f 等高值 {sx,sy,sz} 缩放 x,y 和 z 轴 {sx,sy,sz,sf} 缩放 x,y 和 z 轴及 f 等高值 - 常用的内置缩放函数 s 包括:
-
"Log" 
带有自动刻度标记的对数刻度 "Log10" 
以 10 为底的对数标尺,其中刻度为 10 的幂 "SignedLog" 
包含 0 和负数的类对数标尺 "Reverse" 
反转坐标方向 "Infinite" 
无限标尺 - ContourPlot3D 返回 Graphics3D[GraphicsComplex[data]].
- 影响三维曲面的主题包括:
-

"DarkMesh" 暗色网格线 
"GrayMesh" 灰色网格线 
"LightMesh" 浅色网格线 
"ZMesh" 垂直分布的网格线 
"ThickSurface" 令曲面有厚度
所有选项的列表
范例
打开所有单元 关闭所有单元基本范例 (4)
ContourPlot3D[x ^ 3 + y ^ 2 - z ^ 2 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]ContourPlot3D[x ^ 3 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]ContourPlot3D[x ^ 3 + y ^ 2 - z ^ 2, {x, y, z}∈Ball[{0, 0, 0}, 3]]ContourPlot3D[x ^ 4 + y ^ 4 + z ^ 4 - (x ^ 2 + y ^ 2 + z ^ 2) ^ 2 + 3(x ^ 2 + y ^ 2 + z ^ 2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, ContourStyle -> Directive[Orange, Opacity[0.8], Specularity[White, 30]]]范围 (16)
取样 (6)
ContourPlot3D[x + y + z, {x, y, z}∈Ball[]]ContourPlot3D[x y z, {x, y, z}∈ImplicitRegion[x + y <= z, {x, y, z}]]ContourPlot3D[Sin[x y] == z, {x, 0, 2}, {y, 0, 2}, {z, -1, 1}, Mesh -> All, MaxRecursion -> 1]ContourPlot3D[Sqrt[x y z], {x, -1, 1}, {y, -1, 1}, {z, -1, 1}]用 PlotPoints 和 MaxRecursion 控制自适应取样:
Grid[Table[ContourPlot3D[Sin[3x]Sin[3y]Sin[3z] == 1 / 2, {x, 0, 3}, {y, 0, 3}, {z, -1, 1}, Mesh -> None, BoxRatios -> Automatic, PlotPoints -> pp, MaxRecursion -> mr], {mr, {0, 1}}, {pp, {5, 10}}]]用 RegionFunction 显示内部特征:
ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Contours -> 5, RegionFunction -> Function[{x, y, z}, x < 0 || y > 0], ContourStyle -> {Red, Orange, Yellow, Green, Blue}, Mesh -> None]演示 (10)
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, AxesEdge -> {{-1, -1}, {1, -1}, {-1, -1}}, Ticks -> None, Mesh -> 5, AxesLabel -> {x, y, z}, PlotLabel -> x ^ 2 + y ^ 2 - z ^ 2 == 1]ContourPlot3D[16x ^ 3 + 16y ^ 3 - 31z ^ 3 + 24x ^ 2z - 48x ^ 2y - 48x y ^ 2 + 24y ^ 2z - 93.5307z ^ 2 - 72z == 0, {x, -2, 2}, {y, -2, 2}, {z, -2.3, 2}, ColorFunction -> Function[{x, y, z, f}, ColorData["Rainbow"][z]], Mesh -> 4]ContourPlot3D[x ^ 4 + y ^ 4 + z ^ 4 - x ^ 2 - y ^ 2 - z ^ 2 + 0.5 == 0, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, Mesh -> None, PlotPoints -> 35, ContourStyle -> Directive[Specularity[White, 50], Orange], Lighting -> "Neutral"]ContourPlot3D[{Abs[Sin[x]Sin[y]Sin[z]] == 0.5, Abs[Cos[x]Cos[y]Cos[z]] == 0.5}, {x, 0, 3}, {y, 0, 3}, {z, 0, 3}, ContourStyle -> {Red, Blue}, Mesh -> None]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2, {x, -3, 3}, {y, -3, 3}, {z, -3, 3}, Contours -> {-3, 0, 3}, ContourStyle -> {Purple, Green, Cyan}, Mesh -> 5, MeshStyle -> GrayLevel[0.3], RegionFunction -> Function[{x, y, z}, x < 0 || y > 0]]ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, ContourStyle -> Opacity[0.5], Mesh -> None, ColorFunction -> (Hue[#4 / 4]&)]ContourPlot3D[x ^ 2 - y ^ 2 == z, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, MeshFunctions -> {#1 - #2&, #1 + #2&}, MeshStyle -> {Purple, Orange}, Lighting -> "Neutral", ContourStyle -> Gray]ContourPlot3D[x ^ 2 - y ^ 2 == z, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, MeshFunctions -> {#1 - #2&, #1 + #2&}, MeshShading -> {{Yellow, Blue}, {Green, Cyan}}]ContourPlot3D[Sqrt[x y z], {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, ContourStyle -> {Red, Blue, Green}, PlotLegends -> Automatic]ContourPlot3D[{Abs[Sin[x]Sin[y]Sin[z]] == 0.5, Abs[Cos[x]Cos[y]Cos[z]] == 0.5}, {x, 0, 3}, {y, 0, 3}, {z, 0, 3}, ContourStyle -> {Green, Orange}, Mesh -> None, PlotLegends -> "Expressions"]ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, PlotTheme -> "Marketing"]ContourPlot3D[x ^ 2 + x y - z ^ 2, {x, -10, 10}, {y, -10, 10}, {z, -10, 10}, ScalingFunctions -> {"Reverse", None, None}]选项 (102)
Axes (2)
默认情况下,ContourPlot3D 绘制 Axes:
ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Axes -> False]绘制 ContourPlot3D,依次单独显示各个坐标轴:
{ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Axes -> {True, False, False}], ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Axes -> {False, True, False}], ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Axes -> {False, False, True}]}AxesLabel (4)
ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Axes -> True]ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Axes -> True, AxesLabel -> z]ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Axes -> True, AxesLabel -> {X, Y, Z}]根据 ContourPlot3D 中指定的变量设定标签:
ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Axes -> True, AxesLabel -> Automatic]AxesOrigin (2)
AxesStyle (4)
ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, AxesStyle -> StandardRed]ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, AxesStyle -> {{Thick, StandardBrown}, {Thick, StandardBlue}, {Thick, StandardGreen}}]ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, AxesStyle -> StandardGreen, TicksStyle -> StandardGray]ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, AxesStyle -> StandardGreen, LabelStyle -> StandardGray]BoundaryStyle (3)
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, BoundaryStyle -> Red, Mesh -> None]用 None 省略边界:
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, BoundaryStyle -> None, Mesh -> None]BoundaryStyle 应用于 RegionFunction 切割的洞:
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, BoundaryStyle -> Red, Mesh -> None, RegionFunction -> Function[{x, y, z, w}, x ^ 2 + y ^ 2 + z ^ 2 ≤ 4]]BoxRatios (1)
用 Automatic 显示曲面的自然尺度:
ContourPlot3D[Sin[x y] == z, {x, -2, 2}, {y, -2, 2}, {z, -1, 1}]ContourPlot3D[Sin[x y] == z, {x, -2, 2}, {y, -2, 2}, {z, -1, 1}, BoxRatios -> Automatic]ColorFunction (5)
Table[ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ColorFunction -> Function[{x, y, z, f}, Evaluate[c]], PlotLabel -> c, Axes -> None], {c, {Hue[x], Hue[y], Hue[z], Hue[f]}}]ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, Contours -> 4, ColorFunction -> "DarkRainbow"]ColorFunction 具有比 ContourStyle 更高的优先级:
ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, Contours -> 4, ColorFunction -> "DarkRainbow", ContourStyle -> Directive[Opacity[0.5], Red]]ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ColorFunction -> Function[{x, y, z, f}, If[z < 0, Red, Green]], ColorFunctionScaling -> False]ColorFunction 具有比 MeshShading 更低的优先级:
ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ColorFunction -> Function[{x, y, z, f}, Hue[z]], MeshFunctions -> {#3&}, MeshShading -> {Automatic, StandardGray}]ColorFunctionScaling (2)
ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, Mesh -> None, Contours -> 4, ColorFunction -> Function[{x, y, z, f}, Hue[f / 5]], ColorFunctionScaling -> False]ContourPlot3D[x ^ 2 + y ^ 2 == z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ColorFunction -> Function[{x, y, z, f}, Hue[Sin[x]Sin[y]]], ColorFunctionScaling -> False, Mesh -> None]Contours (4)
ContourPlot3D[x ^ 3 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Contours -> 5, Mesh -> None]ContourPlot3D[x ^ 3 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Contours -> Automatic, Mesh -> None]ContourPlot3D[x ^ 3 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Contours -> {-2, 2}, Mesh -> None]ContourPlot3D[x ^ 3 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Contours -> {{-2, Red}, {2, Blue}}, Mesh -> None]ContourStyle (8)
ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, ContourStyle -> Opacity[0.5]]ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, ContourStyle -> {Red, Green, Blue}]用 FaceForm 在里面和外面设置不同的颜色:
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> 5, ContourStyle -> {FaceForm[Yellow, Blue]}]ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Contours -> 4, Mesh -> None, ContourStyle -> {Blue, Opacity[0.5]}]ContourPlot3D[Evaluate[Table[x ^ 2 + y ^ 2 + z ^ 2 == i, {i, 1, 9, 1.5}]], {x, 0, 2}, {y, 0, 2}, {z, 0, 2}, Contours -> 6, Mesh -> None, ContourStyle -> Directive[Opacity[0.5], Orange]]ContourPlot3D[{x ^ 2 + y ^ 2 + z ^ 2 == 2, x ^ 2 + y ^ 2 == z ^ 2}, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, ContourStyle -> {Red, Yellow}]ColorFunction 具有比 ContourStyle 更高的优先级:
ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2 == 1, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, Mesh -> None, ContourStyle -> Directive[Opacity[0.5], Red], ColorFunction -> Function[{x, y, z, f}, Hue[z]]]MeshShading 具有比 ContourStyle 更高的优先级:
ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2 == 1, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, MeshFunctions -> {#3&}, ContourStyle -> Directive[Opacity[0.5], Yellow], MeshShading -> {Red, Automatic}]EvaluationMonitor (2)
显示 ContourPlot3D 对一个函数取样的位置:
ListPointPlot3D[Reap[ContourPlot3D[Sin[x y] == z, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, EvaluationMonitor :> Sow[{x, y, z}], PlotPoints -> 5]][[-1, 1]], BoxRatios -> Automatic, PlotStyle -> PointSize[Tiny]]Block[{k = 0}, ContourPlot3D[Sin[x y] == z, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, EvaluationMonitor :> k++];k]ImageSize (7)
使用已命名尺寸,如 Tiny、Small、Medium 和 Large:
{ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ImageSize -> Tiny], ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ImageSize -> Small]}{ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ImageSize -> 150], ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, AspectRatio -> 1.5, ImageSize -> 150]}{ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ImageSize -> {Automatic, 150}], ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, AspectRatio -> .75, ImageSize -> {Automatic, 150}]}{ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ImageSize -> UpTo[200]], ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, AspectRatio -> .75, ImageSize -> UpTo[200]]}ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ImageSize -> {200, 200}, Background -> StandardBlue]设置 AspectRatioFull 将填充可用空间:
ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, AspectRatio -> Full, ImageSize -> {200, 200}, Background -> StandardBlue]{ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ImageSize -> {UpTo[150], UpTo[100]}], ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, AspectRatio -> 2, ImageSize -> {UpTo[150], UpTo[100]}]}Framed[Pane[ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ImageSize -> Full, Background -> StandardBlue], {200, 100}]]Framed[Pane[ContourPlot3D[x^4 + y^4 + z^4 - (x^2 + y^2 + z^2)^2 + 3 (x^2 + y^2 + z^2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, AspectRatio -> Full, ImageSize -> {Scaled[0.5], Scaled[0.5]}, Background -> StandardBlue], {200, 200}]]MaxRecursion (1)
Mesh (6)
{ContourPlot3D[Sin[x y] == z, {x, -2, 2}, {y, -2, 2}, {z, -1, 1}, Mesh -> Full, MaxRecursion -> 1], ContourPlot3D[Sin[x y] == z, {x, -2, 2}, {y, -2, 2}, {z, -1, 1}, Mesh -> All, MaxRecursion -> 1]}用 None 不绘制任何网格线:
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> 5, MeshFunctions -> {#1&, #2&, #3&}]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> 5, MeshFunctions -> {#1&, #2&, #3&}]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> {5, 10}, MeshFunctions -> {#1&, #2&}]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> {5, 10}, MeshFunctions -> {#1&, #2&}]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> {{0}, {0}}, MeshFunctions -> {#1&, #2&}]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> {{{0, Thick}}, {{0, Red}}}]MeshFunctions (2)
Table[ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2 == 1, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, PlotLabel -> f, MeshFunctions -> {Function[{x, y, z}, f]}, Axes -> None], {f, {x, y, z}}]ContourPlot3D[x ^ 3 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, MeshFunctions -> (Norm[{#1, #2, #3}]&)]MeshShading (5)
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, MeshFunctions -> {#3&}, MeshShading -> {Red, Blue}]在样式设置时,MeshShading 具有比 ContourStyle 更高的优先级:
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, MeshFunctions -> {#3&}, MeshShading -> {None, Blue}]通过设置 MeshShading 为 Automatic,用 ContourStyle 作用某些部分:
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, MeshFunctions -> {#3&}, MeshShading -> {Red, Automatic}, ContourStyle -> Directive[Opacity[0.5], Yellow]]MeshShading 可以同 ColorFunction 连用:
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, MeshFunctions -> {#3&}, MeshShading -> {StandardGray, Automatic}, ColorFunction -> Function[{x, y, z, f}, Hue[z]]]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, MeshShading -> Table[RGBColor[r, g, b], {r, 0, 1, 1 / 5}, {g, 0, 1, 1 / 5}, {b, 0, 1, 1 / 5}], Mesh -> 5, Lighting -> "Neutral"]MeshStyle (2)
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, MeshFunctions -> {#1&}, MeshStyle -> Dashed, Mesh -> 5]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> 5, MeshFunctions -> {#1&, #2&}, MeshStyle -> {Dashed, Blue}]NormalsFunction (3)
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None]对所有多边形,用 None 获得平面阴影:
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, NormalsFunction -> None, Mesh -> None]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, NormalsFunction -> Function[{x, y, z, u, v}, RandomReal[{-1, 1}, {3}]]]PerformanceGoal (2)
PlotLegends (3)
ContourPlot3D[{x ^ 2 + y ^ 2 - z ^ 2 == 1, x ^ 2 + y ^ 2 + z ^ 2 == 2}, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ContourStyle -> {Yellow, Red}, PlotLegends -> "Expressions"]使用 Placed 改变图例放置的位置:
ContourPlot3D[{x ^ 2 + y ^ 2 - z ^ 2 == 1, x ^ 2 + y ^ 2 + z ^ 2 == 2}, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ContourStyle -> {Yellow, Red}, PlotLegends -> Placed["Expressions", Below]]用 SwatchLegend 来修改图例:
ContourPlot3D[{x ^ 2 + y ^ 2 - z ^ 2 == 1, x ^ 2 + y ^ 2 + z ^ 2 == 2}, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, ContourStyle -> {Yellow, Red}, PlotLegends -> SwatchLegend["Expressions", LegendFunction -> "Frame"]]PlotPoints (1)
PlotRange (2)
在 Full 的
、
、
范围上显示等值面:
ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2 == 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2 == 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, PlotRange -> Automatic]PlotTheme (4)
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, PlotTheme -> "Detailed"]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, PlotTheme -> "Detailed", FaceGrids -> None]ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, PlotTheme -> "Minimal"]ContourPlot3D[x ^ 4 + y ^ 4 + z ^ 4 - (x ^ 2 + y ^ 2 + z ^ 2) ^ 2 + 3(x ^ 2 + y ^ 2 + z ^ 2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, PlotTheme -> "ThickSurface"]RegionFunction (2)
Table[ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, Mesh -> None, Axes -> None, Contours -> 4, RegionFunction -> Function[{x, y, z}, Evaluate[f]], PlotLabel -> f], {f, {-1 / 2 < x < 1 / 2, -1 / 2 < y < 1 / 2, -1 / 2 < z < 1 / 2}}]ContourPlot3D[x ^ 2 + y ^ 2 + z ^ 2, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, Contours -> 4, Mesh -> None, Axes -> None, RegionBoundaryStyle -> None, RegionFunction -> Function[{x, y, z}, x < 0 || y > 0]]RegionBoundaryStyle (4)
ContourPlot3D[x ^ 3 + y ^ 2 - z ^ 2 == 0, {x, y, z}∈Ball[]]ContourPlot3D[x ^ 3 + y ^ 2 - z ^ 2 == 0, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, RegionFunction -> Function[{x, y, z, f}, x + y > 0]]用 None 不绘制区域:
ContourPlot3D[x ^ 3 + y ^ 2 - z ^ 2 == 0, {x, y, z}∈Ball[], RegionBoundaryStyle -> None]用自定义 RegionBoundaryStyle:
ContourPlot3D[x ^ 3 + y ^ 2 - z ^ 2 == 0, {x, y, z}∈Ball[], RegionBoundaryStyle -> Directive[Yellow, Opacity[.8]]]ScalingFunctions (4)
默认情况下,ContourPlot3D 在所有方向上使用线性比例:
ContourPlot3D[x ^ 2 + y ^ 2 == 1 / z, {x, -2, 2}, {y, -2, 2}, {z, 0, 20}]ContourPlot3D[x ^ 2 + y ^ 2 == 1 / z, {x, -2, 2}, {y, -2, 2}, {z, 0, 20}, ScalingFunctions -> {None, None, "Log"}, PlotRange -> All]ContourPlot3D[x ^ 2 + y ^ 2 == 1 / z, {x, -2, 2}, {y, -2, 2}, {z, 0, 20}, ScalingFunctions -> {None, None, "Reverse"}]ContourPlot3D[x ^ 2 + y ^ 2 == 1 / z, {x, -2, 2}, {y, -2, 2}, {z, 0, 10}, ScalingFunctions -> {None, None, {-Log[#]&, Exp[-#]&}}]TextureCoordinateFunction (5)
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, Lighting -> "Neutral", ContourStyle -> Texture[ExampleData[{"ColorTexture", "WavesPattern"}]]]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, Lighting -> "Neutral", TextureCoordinateFunction -> ({#1, #3}&), ContourStyle -> Texture[ExampleData[{"ColorTexture", "WavesPattern"}]]]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, Lighting -> "Neutral", ContourStyle -> {Texture[ExampleData[{"ColorTexture", "Ash"}]], Texture[ExampleData[{"ColorTexture", "Amboyna"}]], Texture[ExampleData[{"ColorTexture", "Laurel"}]]}]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, Lighting -> "Neutral", TextureCoordinateScaling -> False, ContourStyle -> Texture[ExampleData[{"ColorTexture", "WavesPattern"}]]]texture = ArrayPlot[{{1, 1, 1, 2, 1, 1}, {2, 0, 0, 2, 0, 0}, {2, 0, 0, 2, 0, 0}, {2, 1, 1, 1, 1, 1}, {2, 0, 0, 2, 0, 0}, {2, 0, 0, 2, 0, 0}}, ColorRules -> {1 -> Red, 2 -> Blue, 0 -> White}, Frame -> False, PlotRangePadding -> None, ImagePadding -> None, ImageSize -> 100]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, Lighting -> "Neutral", ContourStyle -> Texture[texture]]TextureCoordinateScaling (1)
texture = ArrayPlot[{{1, 1, 1, 2, 1, 1}, {2, 0, 0, 2, 0, 0}, {2, 0, 0, 2, 0, 0}, {2, 1, 1, 1, 1, 1}, {2, 0, 0, 2, 0, 0}, {2, 0, 0, 2, 0, 0}}, ColorRules -> {1 -> Red, 2 -> Blue, 0 -> White}, Frame -> False, PlotRangePadding -> None, ImagePadding -> None, ImageSize -> 100]Table[ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2 == 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, Lighting -> "Neutral", ContourStyle -> Texture[texture], TextureCoordinateScaling -> s, PlotLabel -> s], {s, {True, False}}]Ticks (6)
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 4 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 4 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Ticks -> None]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 4 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Ticks -> {{-2, .5, 2}, {-2, 0, 2}, {-2, 1, 2}}]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 4 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Ticks -> {{{-2, -a}, {.5, b}, {2, a}}, {{-2, -a}, {0, c}, {2, a}}, {{-2, -a}, {1, d}, {2, a}}}]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 4 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Ticks -> {{{-2, -a, .1}, {.5, b, .1}, {2, a, .1}}, {{-2, -a, .08}, {0, c, .08}, {2, a, .08}}, {{-2, -a, .05}, {1, d, .05}, {2, a, .05}}}]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 4 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Ticks -> {{{-2, -a, .05, Directive[Thick, Red]}, {.5, b, .05, Directive[Thick, Red]}, {2, a, .01, Directive[Thick, Red]}}, {{-2, -a, .05, Directive[Blue]}, {0, c, .05, Directive[Blue]}, {2, a, .05, Directive[Blue]}}, {{-2, -a, .1, Directive[Thick, Green]}, {1, d, .1, Directive[Thick, Green]}, {2, a, .1, Directive[Thick, Darker@Green]}}}]TicksStyle (3)
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 4 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, AxesStyle -> Directive[StandardRed, Thick]]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 4 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, TicksStyle -> Directive[StandardRed, Thick]]ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 4 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, TicksStyle -> {Directive[StandardRed, Thick], Directive[StandardBlue], Directive[StandardGray, Thick]}]应用 (5)
椭球表面 [更多信息]:
Table[ContourPlot3D[Evaluate[e], {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, AxesLabel -> Automatic, Ticks -> None, PlotLabel -> e], {e, {(x / 2) ^ 2 + y ^ 2 + z ^ 2 == 1, x ^ 2 + (y / 2) ^ 2 + z ^ 2 == 1, x ^ 2 + y ^ 2 + (z / 2) ^ 2 == 1}}]Integrate[Boole[(x / 2) ^ 2 + y ^ 2 + z ^ 2 ≤ 1], {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]NIntegrate[Boole[(x / 2) ^ 2 + y ^ 2 + z ^ 2 ≤ 1], {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]圆锥表面 [更多信息]:
Table[ContourPlot3D[Evaluate[e], {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, AxesLabel -> Automatic, Ticks -> None, PlotLabel -> e], {e, {-x ^ 2 + y ^ 2 + z ^ 2 == 0, x ^ 2 - y ^ 2 + z ^ 2 == 0, x ^ 2 + y ^ 2 - z ^ 2 == 0}}]ContourPlot3D[{x ^ 2 + y ^ 2 - z ^ 2 == 1, x ^ 2 + y ^ 2 + z ^ 2 == 1, x ^ 2 + y ^ 2 - z ^ 2 == -1}, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, BoxRatios -> Automatic, RegionFunction -> Function[{x, y, z}, x < 0 || y > 0], ContourStyle -> {Yellow, Magenta, Cyan}, Mesh -> 3]用 Mesh 表明一个双曲抛物面是一个双直纹面:
ContourPlot3D[x ^ 2 - y ^ 2 == z, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, MeshFunctions -> {#1 - #2&, #1 + #2&}, MeshStyle -> {Purple, Orange}, Lighting -> "Neutral", ContourStyle -> Gray]一个隐式定义的圆环 [更多信息]:
torus[{R_, r_}, {x_, y_, z_}] := (x^2 + y^2 + z^2 + R^2 - r^2)^2 == 4R^2(x^2 + z^2);torus[{2, 1}, {x, y, z}]ContourPlot3D[ Evaluate[torus[{3, 1}, {x, y, z}]], {x, -5, 5}, {y, -5, 5}, {z, -5, 5}, Mesh -> None, ContourStyle -> Directive[Orange, Specularity[White, 20]], PlotPoints -> 25, PlotRange -> Automatic, BoxRatios -> Automatic]ElectroStaticPotential[q_, p_, r_] := Sum[ (q[[i]]/Norm[r - p[[i]]]), {i, Length[q]}]ElectroStaticPotential[{Subscript[q, 1], Subscript[q, 2]}, {{Subscript[x, 1], Subscript[y, 1], Subscript[z, 1]}, {Subscript[x, 2], Subscript[y, 2], Subscript[z, 2]}}, {x, y, z}]//TraditionalFormContourPlot3D[Evaluate[ElectroStaticPotential[{1, -1}, {{-1, 0, 0}, {1, 0, 0}}, {x, y, z}]], {x, -6, 6}, {y, 0, 4}, {z, -4, 4}, Contours -> {-0.75, -0.25, -0.1, 0, 0.1, 0.25, 0.75}, ContourStyle -> Table[Hue[i / 7], {i, 0, 6}], Mesh -> None]ContourPlot3D[Evaluate[ElectroStaticPotential[{1, 1}, {{-1, 0, 0}, {1, 0, 0}}, {x, y, z}]], {x, -3, 3}, {y, 0, 2}, {z, -2, 2}, Contours -> {1, 1.5, 2}, ContourStyle -> Table[Hue[i / 3], {i, 0, 2}], Mesh -> None]ContourPlot3D[Evaluate[ElectroStaticPotential[{2, -1, -1}, {{0, 0, 0}, {1, 0, -1}, {-1, 0, -1}}, {x, y, z}]], {x, -4, 4}, {y, 0, 4}, {z, -6, 6}, Contours -> {-0.75, -0.25, -0.1, 0, 0.1, 0.25, 0.75}, ContourStyle -> Table[Hue[i / 7], {i, 0, 6}], Mesh -> None ]属性和关系 (8)
ContourPlot3D 在需要的位置对更多的点取样:
ContourPlot3D[Sin[x y] == z, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> All, MaxRecursion -> 1]{ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 4, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Contours -> {0}], ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 4 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]}ContourPlot3D[x ^ 2 + y ^ 2 == z ^ 4, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, Mesh -> None, ContourStyle -> FaceForm[Red, Yellow]]ContourPlot3D[z ^ 4 == x ^ 2 + y ^ 2, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, Mesh -> None, ContourStyle -> FaceForm[Red, Yellow]]用 ListContourPlot3D 绘制数据:
data = Flatten[Table[{x, y, z, Sin[x y] - z}, {x, -2, 2, 0.2}, {y, -2, 2, 0.2}, {z, -2, 2, 0.2}], 2];ListContourPlot3D[data]对于三维空间的隐式区域用 RegionPlot3D:
RegionPlot3D[Sin[x y] ≥ z, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]对曲面用 Plot3D:
Plot3D[Sin[x y], {x, -2, 2}, {y, -2, 2}]对三维空间的参数曲线和区域,用 ParametricPlot3D:
{ParametricPlot3D[{Cos[u], Sin[u], u / (6Pi)}, {u, 0, 6Pi}], ParametricPlot3D[{u + v, u - v, u ^ 2 - v ^ 2}, {u, -2, 2}, {v, -2, 2}]}对于二维空间的等值面和密度面,用 ContourPlot 和 DensityPlot:
{ContourPlot[Sin[x y], {x, -2, 2}, {y, -2, 2}],
DensityPlot[Sin[x y], {x, -2, 2}, {y, -2, 2}]}可能存在的问题 (3)
提高对 PlotPoints 或 MaxRecursion 的设置值以捕捉一个曲面的特征:
ContourPlot3D[z ^ 2 + x z == x ^ 2z, {x, -0.5, 1.5}, {y, -1, 1}, {z, -1, 1}, Mesh -> None]ContourPlot3D[z ^ 2 + x z == x ^ 2z, {x, -0.5, 1.5}, {y, -1, 1}, {z, -1, 1}, Mesh -> None, MaxRecursion -> 4]ContourPlot3D[Sin[3x]Sin[3y]Sin[3z] == 1 / 2, {x, 0, 3}, {y, 0, 3}, {z, -1, 1}, Mesh -> None, BoxRatios -> Automatic, PlotPoints -> 5]ContourPlot3D[Sin[3x]Sin[3y]Sin[3z] == 1 / 2, {x, 0, 3}, {y, 0, 3}, {z, -1, 1}, Mesh -> None, BoxRatios -> Automatic, PlotPoints -> 10]ContourPlot3D[(x ^ 2 + y ^ 2 + z ^ 2 - 1) ^ 2 == 0, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}]文本
Wolfram Research (2007),ContourPlot3D,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ContourPlot3D.html (更新于 2022 年).
CMS
Wolfram 语言. 2007. "ContourPlot3D." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2022. https://reference.wolfram.com/language/ref/ContourPlot3D.html.
APA
Wolfram 语言. (2007). ContourPlot3D. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/ContourPlot3D.html 年
BibTeX
@misc{reference.wolfram_2026_contourplot3d, author="Wolfram Research", title="{ContourPlot3D}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/ContourPlot3D.html}", note=[Accessed: 16-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_contourplot3d, organization={Wolfram Research}, title={ContourPlot3D}, year={2022}, url={https://reference.wolfram.com/language/ref/ContourPlot3D.html}, note=[Accessed: 16-September-2026]}