This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / The Mathematica Book / A Practical Introduction to Mathematica / Graphics and Sound /

1.9.10 Some Special Plots

As discussed in Section 2.10, Mathematica includes a full graphics programming language. In this language, you can set up many different kinds of plots. A few of the common ones are included in standard Mathematica packages.

Some special plotting functions defined in standard Mathematica packages.

This loads a standard Mathematica package to set up additional graphics functions.

In[1]:= <<Graphics`

This generates a log-linear plot.

In[2]:= LogPlot[ Exp[-x] + 4 Exp[-2x], {x, 0, 6} ]


Here is a list of the first 10 primes.

In[3]:= p = Table[Prime[n], {n, 10}]


This plots the primes using the integers 1, 2, 3, ... as plotting symbols.

In[4]:= TextListPlot[p]


Here is a bar chart of the primes.

In[5]:= BarChart[p]


This gives a pie chart.

In[6]:= PieChart[p]