How to | Plot Data

The Wolfram Language offers extensive support for plotting all kinds of data in many different ways.

Consider the following data to be plotted (stored as sdata):

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

Use ListPlot to plot sdata:

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

Plot sdata by filling to the axis:

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

Specify a color and increase the size of the data points:

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

Use ListLinePlot to plot sdata with a connecting line:

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

Create another set of data to plot (stored as cdata):

In[6]:=
Click for copyable input

Plot sdata and cdata together:

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

Use ListPolarPlot to plot cdata as points at polar coordinates:

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

Define another dataset to plot (stored as data):

In[9]:=
Click for copyable input

The dataset has 31 sublists:

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

Plot only specific parts of data:

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

Connect these points with lines:

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

Generate a 3D scatter plot of points with an array of height values for data using ListPointPlot3D:

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

Use ListPlot3D to plot data as a surface:

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

Use ListDensityPlot to generate a density plot from the height values of data:

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

Use ListContourPlot to generate a contour plot instead:

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

This constructs a Demonstration of data plotting:

In[1]:=
Click for copyable input
Out[1]=Play Animation
Translate this page: