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

  1. Newsgroups: comp.graphics.gnuplot
  2. Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!nikhefk!wkasdo
  3. From: wkasdo@paramount.nikhefk.nikhef.nl (Willem Kasdorp)
  4. Subject: Re: Interactively sending output to printer from gnuplot?
  5. Message-ID: <1992Nov6.100349.24198@paramount.nikhefk.nikhef.nl>
  6. Organization: NIKHEFK
  7. References: <LIM.92Nov5115933@forsight.jpl.nasa.gov>
  8. Distribution: comp.graphics.gnuplot
  9. Date: Fri, 6 Nov 1992 10:03:49 GMT
  10. Lines: 28
  11.  
  12. lim@telerobotics.jpl.nasa.gov (David Lim) writes:
  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. I use the following gnuplot commandfile to print the current plot on 
  22. the default PostScript printer. Call it with from gnuplot using:
  23.  
  24. gnuplot> load 'ps.gnu'
  25.  
  26. -------------------------file ps.gnu, cut here------------------------------
  27. # Gnuplot script to dump the current plot to a laserprinter
  28. # assume terminal is x11
  29.  
  30. set term postscript landscape monochrome "Times-Roman" 14
  31. set output "plot.ps"
  32. replot
  33. ! lpr -Pps plot.ps 
  34. ! /bin/rm plot.ps 
  35. ! lpq -Pps
  36. set term x11
  37. set output
  38. show term
  39. replot
  40.