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 ko pt-br ru zh