Using the Postscript Printer with Gnuplot
A D V E R T I S E M E N T
Gnuplot supports the PostScript page definition language which is used by the
PostScript printer located in Holmes 244. You must use the set term
command to set the terminal to postscript, as shown:
set term postscript
The PostScript terminal setting has a few options which affect the way a
PostScript plot is created. These options are followed after the key word,
postscript. Because the settings are optional, they may be
omitted in the set term command.
In addition to setting the terminal type for Gnuplot, you must also set the
output file. There are two methods to plot your output to the printer. You can
first save the output to a file and send that file to the printer, or you can
directly print to the printer. In order to send the output to a file, use the
following set output command, substituting your own file name
for filename.ps:
You then send that file to the PostScript printer with this command: (typed at
the Unix prompt)
lp -dpostscript filename.ps
You can also set the output file to plot directly to the printer. However,
remember to note that you must bring your own paper when sending the output to
the printer. In order to send the output to the printer (thereby bypassing the
need to create a plot file), use the following set output
command:
set output "|lp -dpostscript"
For both of these output methods, the file is not "sent" until another output
(or the same output) file is selected, or until Gnuplot terminates. After you
are done with one plot, simply type the same set output command
to "flush" the file.
|