Institut für Astronomie und AstrophysikAbteilung AstronomieSand 1, D-72076 Tübingen, Germany |
close_print
close the PS device opened with open_print and switch back to the previous device
misc, printing
close_print,print=print,ghost=ghost,infotag=infotag
print: if set and if filename is idl.ps, then spool to lpr. ghost: if set, display the plot with gv or ghostview (these are searched for in a set of standard paths) infotag=: add an informational tag in the lower right corner of the figure printing: if set and not 0, then execute the remainder of the routine
plotstuff
the device is switched back to X11
printing=1 if keyword_set(printing) then open_print,'fig1.eps',/aa1col plot,[0,1],[0,1] if keyword_set(printing) then close_print,/ghost
$Log: close_print.pro,v $ Revision 1.7 2007/01/23 19:43:26 kreyken Added another path for gv to make it work on Mac OS X Revision 1.6 2006/01/12 12:53:28 wilms added gv Revision 1.5 2005/09/24 16:16:00 wilms added printing option Revision 1.4 2004/09/24 13:54:26 wilms added doc header J.W., 1994,1996 CVS Version 1.1: use gv if it exists J.Wilms, 2001.08.13 (first change since 1996!!!!!!!!) CVS Version 1.2, 2001.08.13: ... and now we check for gv and ghostview in a way that works on OSF and Linux!
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]