home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / graphics / gnuplot / 298 < prev    next >
Encoding:
Text File  |  1992-11-05  |  1.8 KB  |  52 lines

  1. Newsgroups: comp.graphics.gnuplot
  2. Path: sparky!uunet!caen!sdd.hp.com!elroy.jpl.nasa.gov!lim
  3. From: lim@telerobotics.jpl.nasa.gov (David Lim)
  4. Subject: Interactively sending output to printer from gnuplot?
  5. Message-ID: <LIM.92Nov5115933@forsight.jpl.nasa.gov>
  6. Sender: news@elroy.jpl.nasa.gov (Usenet)
  7. Nntp-Posting-Host: robotics.jpl.nasa.gov
  8. Reply-To: lim@telerobotics.jpl.nasa.gov
  9. Organization: Jet Propulsion Laboratory
  10. Distribution: comp.graphics.gnuplot
  11. Date: Thu, 5 Nov 1992 19:59:33 GMT
  12. Lines: 38
  13.  
  14.  
  15. I would like to tell gnuplot to send my plot to the printer interactively from
  16. within gnuplot. I did read the manual suggesting the use of the set output
  17. command (which by the way seems to be in error, you should not specify a
  18. filename to the lpr command). However, I have not been able to get it to print
  19. until I quit out of gnuplot:
  20.  
  21. % gnuplot
  22.  
  23.         G N U P L O T
  24.         unix version 3.2
  25.         patchlevel 2, Mar 24 92
  26.         last modified Sat Mar 24 21:08:47 PST 1992
  27.  
  28. Copyright(C) 1986, 1987, 1990, 1991, 1992  Thomas Williams, Colin Kelley
  29.  
  30.         Send bugs and comments to bug-gnuplot@ames.arc.nasa.gov
  31.  
  32. Terminal type set to 'x11'
  33. gnuplot> load "/home/lim/work/robot/data/dump/gp/y.gp"
  34. gnuplot> set terminal postscript
  35. Terminal type set to 'postscript'
  36. Options are 'landscape monochrome "Courier" 14'
  37. gnuplot> set output "|lpr -Pjade"
  38. gnuplot> replot
  39. gnuplot>
  40.  
  41. On another terminal, I monitor the process with ps, and it shows the lpr
  42. process waiting:
  43.  
  44.   PID TT STAT  TIME COMMAND
  45. 17836 p8 IW    0:00 sh -c lpr -Pjade
  46.  
  47. If I quit, then the printing starts up. Or if I do a 'set output', the
  48. printing starts up. It seems as if the lpr process is waiting for EOF before
  49. it starts printing (as it should), and gnuplot is not sending this EOF. If
  50. this is the case, gnuplot should really close the pipe after a replot, and
  51. then start up a new one on the next replot.
  52.