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]:= |
| Out[2]= | ![]() |
Use ListPlot to plot
:
| In[3]:= |
| Out[3]= | ![]() |
| In[4]:= |
| Out[4]= | ![]() |
Specify a color and increase the size of the data points:
| In[5]:= |
| Out[5]= | ![]() |
Use ListLinePlot to plot
with a connecting line:
| In[6]:= |
| Out[6]= | ![]() |
Create another set of data to plot (stored as
):
| In[7]:= |
| In[8]:= |
| Out[8]= | ![]() |
Use ListPolarPlot to plot
as points at polar coordinates:
| In[9]:= |
| Out[9]= | ![]() |
Define another dataset to plot (stored as
):
| In[10]:= |
| In[11]:= |
| Out[11]= |
| In[12]:= |
| Out[12]= | ![]() |
Connect these points with lines:
| In[13]:= |
| Out[13]= | ![]() |
Generate a 3D scatter plot of points with an array of height values for
using ListPointPlot3D:
| In[14]:= |
| Out[14]= | ![]() |
Use ListPlot3D to plot
as a surface:
| In[15]:= |
| Out[15]= | ![]() |
Use ListDensityPlot to generate a density plot from the height values of
:
| In[16]:= |
| Out[16]= | ![]() |
Use ListContourPlot to generate a contour plot instead:
| In[17]:= |
| Out[17]= | ![]() |
This constructs a Demonstration of data plotting:
| In[18]:= |
| Out[18]= | Play Animation ▪![]() |















