How to | Plot Data in 3D

The integrated visualization capabilities of the Wolfram Language provide many tools to show data in 3D. The ability to plot points, surfaces, and contours, combined with the interpolation power of the Wolfram Language, results in accurate 3D visualizations. There are also many ways to customize and interact with these 3D plots that help you to better understand your data.

First, create datasets to plot in 3D. ExampleData is used to get the second set of data:

In[1]:=
Click for copyable input

Use ListPointPlot3D to plot the list of 3D points given by :

In[2]:=
Click for copyable input
Out[2]=

Use the ColorFunction option with ListPointPlot3D to color the plot with a predefined gradient:

In[3]:=
Click for copyable input
Out[3]=

Use ListPlot3D to generate a 3D surface plot from :

In[4]:=
Click for copyable input
Out[4]=

Specifying mesh properties is one way to customize these plots. This example uses Mesh, MeshFunctions, MeshShading, and MeshStyle with ListPlot3D:

In[5]:=
Click for copyable input
Out[5]=

Use ListSurfacePlot3D to generate 3D surfaces from either set of data:

In[6]:=
Click for copyable input
Out[6]=
In[7]:=
Click for copyable input
Out[7]=

Use ListSurfacePlot3D to construct a 3D surface from , with restrictions on the number of points used in interpolation and the size of the mesh:

In[8]:=
Click for copyable input
Out[8]=

Use other mesh options available for ListSurfacePlot3D:

In[9]:=
Click for copyable input
Out[9]=

Mesh options are also available for ListContourPlot3D:

In[10]:=
Click for copyable input
Out[10]=
    

The Wolfram Language also allows you to plot vector data in 3D.

Use ListVectorPlot3D to visualize vector data:

In[1]:=
Click for copyable input
Out[1]=
    

Plots in 3D integrate well with other Wolfram Language functions.

Use Manipulate with ListSurfacePlot3D to view an interactive 3D plot where you can adjust the size and color of the mesh. Using the mouse, you can rotate, zoom, and pan any of these plots just as you would any other 3D graphic. You must evaluate this example to see the result:

In[1]:=
Click for copyable input