MATHEMATICA HOW TO

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

 Out[2]=

Use ListPlot to plot :

 Out[3]=

Plot by filling to the axis:

 Out[4]=

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

 Out[5]=

Use ListLinePlot to plot with a connecting line:

 Out[6]=

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

Plot and together:

 Out[8]=

Use ListPolarPlot to plot as points at polar coordinates:

 Out[9]=

Define another dataset to plot (stored as ):

The dataset has 31 sublists:

 Out[11]=

Plot only specific parts of :

 Out[12]=

Connect these points with lines:

 Out[13]=

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

 Out[14]=

Use ListPlot3D to plot as a surface:

 Out[15]=

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

 Out[16]=

Use ListContourPlot to generate a contour plot instead:

 Out[17]=

This constructs a Demonstration of data plotting:

 Out[18]= Play Animation ▪