O'Reilly logo

Linux Pocket Guide, 2nd Edition by Daniel J. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required