next up previous contents index
Next: Files Up: man Page for plt Previous: Screen and printed plots

Examples

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)"

The plt Tutorial and Cookbook contains many more examples.


George B. Moody (george@mit.edu)
2002-10-11