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 ):

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

Use ListPlot to plot :

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

Plot 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 with a connecting line:

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

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

In[6]:=
Click for copyable input

Plot and together:

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

Use ListPolarPlot to plot as points at polar coordinates:

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

Define another dataset to plot (stored as ):

In[9]:=
Click for copyable input

The dataset has 31 sublists:

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

Plot only specific parts of :

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 using ListPointPlot3D:

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

Use ListPlot3D to plot as a surface:

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

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

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: