next up previous contents index
Next: See Also Up: plt Previous: Screen and printed plots


Create a text file with the following contents:

0 0 0

1 1 1

2 4 8

3 9 27

4 16 64

and call the file powers. Plot the first column vs. the second by:

plt powers 0 1 -t "Squares of small integers" -x "Integer" -y "Square"

The same file can be used to generate a number of different plots, by choosing different columns. To plot the third column vs. the first, try:

plt powers 2 0 -t "Marshmallows" -x "Mass (kg)" -y "Height (m)"

George B. Moody (