This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
How to | Plot Data
Mathematica offers extensive support for plotting all kinds of data in many different ways.
Consider the following data to be plotted (stored as ):
In[2]:=
Click for copyable input
Out[2]=
Use ListPlot to plot :
In[3]:=
Click for copyable input
Out[3]=
Plot by filling to the axis:
In[4]:=
Click for copyable input
Out[4]=
Specify a color and increase the size of the data points:
In[5]:=
Click for copyable input
Out[5]=
Use ListLinePlot to plot with a connecting line:
In[6]:=
Click for copyable input
Out[6]=
Create another set of data to plot (stored as ):
In[7]:=
Click for copyable input
Plot and together:
In[8]:=
Click for copyable input
Out[8]=
Use ListPolarPlot to plot as points at polar coordinates:
In[9]:=
Click for copyable input
Out[9]=
Define another dataset to plot (stored as ):
In[10]:=
Click for copyable input
The dataset has 31 sublists:
In[11]:=
Click for copyable input
Out[11]=
Plot only specific parts of :
In[12]:=
Click for copyable input
Out[12]=
Connect these points with lines:
In[13]:=
Click for copyable input
Out[13]=
Generate a 3D scatter plot of points with an array of height values for using ListPointPlot3D:
In[14]:=
Click for copyable input
Out[14]=
Use ListPlot3D to plot as a surface:
In[15]:=
Click for copyable input
Out[15]=
Use ListDensityPlot to generate a density plot from the height values of :
In[16]:=
Click for copyable input
Out[16]=
Use ListContourPlot to generate a contour plot instead:
In[17]:=
Click for copyable input
Out[17]=
    
This constructs a Demonstration of data plotting: