home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics.gnuplot
- Path: sparky!uunet!caen!sdd.hp.com!elroy.jpl.nasa.gov!lim
- From: lim@telerobotics.jpl.nasa.gov (David Lim)
- Subject: Interactively sending output to printer from gnuplot?
- Message-ID: <LIM.92Nov5115933@forsight.jpl.nasa.gov>
- Sender: news@elroy.jpl.nasa.gov (Usenet)
- Nntp-Posting-Host: robotics.jpl.nasa.gov
- Reply-To: lim@telerobotics.jpl.nasa.gov
- Organization: Jet Propulsion Laboratory
- Distribution: comp.graphics.gnuplot
- Date: Thu, 5 Nov 1992 19:59:33 GMT
- Lines: 38
-
-
- 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:
-
- % gnuplot
-
- G N U P L O T
- unix version 3.2
- patchlevel 2, Mar 24 92
- last modified Sat Mar 24 21:08:47 PST 1992
-
- Copyright(C) 1986, 1987, 1990, 1991, 1992 Thomas Williams, Colin Kelley
-
- Send bugs and comments to bug-gnuplot@ames.arc.nasa.gov
-
- Terminal type set to 'x11'
- gnuplot> load "/home/lim/work/robot/data/dump/gp/y.gp"
- gnuplot> set terminal postscript
- Terminal type set to 'postscript'
- Options are 'landscape monochrome "Courier" 14'
- gnuplot> set output "|lpr -Pjade"
- gnuplot> replot
- gnuplot>
-
- On another terminal, I monitor the process with ps, and it shows the lpr
- process waiting:
-
- PID TT STAT TIME COMMAND
- 17836 p8 IW 0:00 sh -c lpr -Pjade
-
- If I quit, then the printing starts up. Or if I do a 'set output', the
- printing starts up. It seems as if the lpr process is waiting for EOF before
- it starts printing (as it should), and gnuplot is not sending this EOF. If
- this is the case, gnuplot should really close the pipe after a replot, and
- then start up a new one on the next replot.
-