Wolfram 语言

立体可视化

内置平面

以不同的平行平面组和相交平面组作为切片.

显示完整的 Wolfram 语言输入
In[1]:=
Click for copyable input
opts = {ColorFunction -> ColorData[{"Rainbow", {-2.5, 2.5}}], ColorFunctionScaling -> False, ClippingStyle -> Automatic, Axes -> False, Boxed -> False, SphericalRegion -> True, ImageSize -> 200, PlotPoints -> 32};
In[2]:=
Click for copyable input
slices = {"CenterPlanes", "BackPlanes", "XStackedPlanes", "YStackedPlanes", "ZStackedPlanes", "DiagonalStackedPlanes"};
In[3]:=
Click for copyable input
Grid[Partition[ Table[SliceContourPlot3D[ 1/Sqrt[(1 + x)^2 + (1 + y)^2 + z^2] - 1/ Sqrt[(-1 + x)^2 + (-1 + y)^2 + z^2], slice, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Contours -> Range[-2.5, 2.5, 0.5], Evaluate@opts], {slice, slices}], 3]]
Out[3]=

相关范例

de en es fr ja ko pt-br ru