home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics.gnuplot
- Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!nikhefk!wkasdo
- From: wkasdo@paramount.nikhefk.nikhef.nl (Willem Kasdorp)
- Subject: Re: Interactively sending output to printer from gnuplot?
- Message-ID: <1992Nov6.100349.24198@paramount.nikhefk.nikhef.nl>
- Organization: NIKHEFK
- References: <LIM.92Nov5115933@forsight.jpl.nasa.gov>
- Distribution: comp.graphics.gnuplot
- Date: Fri, 6 Nov 1992 10:03:49 GMT
- Lines: 28
-
- lim@telerobotics.jpl.nasa.gov (David Lim) writes:
-
-
- >I would like to tell gnuplot to send my plot to the printer interactively from
- >within gnuplot. I did read the manual suggesting the use of the set output
- >command (which by the way seems to be in error, you should not specify a
- >filename to the lpr command). However, I have not been able to get it to print
- >until I quit out of gnuplot:
-
- I use the following gnuplot commandfile to print the current plot on
- the default PostScript printer. Call it with from gnuplot using:
-
- gnuplot> load 'ps.gnu'
-
- -------------------------file ps.gnu, cut here------------------------------
- # Gnuplot script to dump the current plot to a laserprinter
- # assume terminal is x11
-
- set term postscript landscape monochrome "Times-Roman" 14
- set output "plot.ps"
- replot
- ! lpr -Pps plot.ps
- ! /bin/rm plot.ps
- ! lpq -Pps
- set term x11
- set output
- show term
- replot
-