Name

gnuplot — stdin  stdout  - file  -- opt  --help  --version

Synopsis

gnuplot [options] [files]

The gnuplot program creates graphs, plotting points and connecting them with lines and curves, and saves them in a wide variety of printer and plotter formats, such as PostScript. To use gnuplot, you need to learn a small but powerful programming language. Here’s an example of plotting the curve y = x2 from x = 1 to 10, which will appear in an X window on your display:

$ gnuplot
gnuplot> plot [1:10] x**2
gnuplot> quit

To do the same, saving the results as a PostScript file:

$ cat myfile
set terminal postscript
plot [1:10] x**2
$ gnuplot < myfile > output.ps

See http://www.gnuplot.info for full details.

Get Linux Pocket Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.