8.3 Plotting Lists of Data
So far, the previous sections have discussed how you can use Mathematica TE to make plots of functions. You give Mathematica TE a function and it builds up a curve by evaluating the function at many different points.
This section describes how you can make plots from lists of data instead of functions. The Mathematica TE commands for plotting lists of data are direct analogs of the ones discussed in Section 8.1 for plotting functions.
Functions for plotting lists of data.
Here is a list of values.
In[1]:= t = Table[i^2, {i, 10}]
Out[1]=
This plots the values.
In[2]:= ListPlot[t]
Out[2]=
This joins the points with lines.
In[3]:= ListPlot[t, PlotJoined -> True]
Out[3]=
This gives a list of , pairs.
In[4]:= Table[{i^3, i + 4 i^2}, {i, 10}]
Out[4]=
This plots the points.
In[5]:= ListPlot[%]
Out[5]=