[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
[Uni logo]


close_print Source code in close_print.pro

close_print

Name
        close_print
Purpose
         close the PS device opened with open_print and switch
         back to the previous device
Category
         misc, printing
Calling Sequence
         close_print,print=print,ghost=ghost,infotag=infotag
Input Parameters

Optional Input Parameters

Keyword Parameters
          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
Output Parameters

Optional Output

Common Blocks
      plotstuff
Side Effects
      the device is switched back to X11
Restrictions

Procedure

Example
          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
Revision History
 $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!

Last modified by pro2html on 2007 January 24 at 04:10 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically