Re: saving a plot

From: David P. Huenemoerder <dph_at_email.domain.hidden>
Date: Thu, 19 Feb 2009 10:07:50 -0500
    Manfred> The list of devices you can use actually depends on your
    Manfred> installation of PGPLOT -- and not on ISIS.  When PGPLOT
    Manfred> is compiled, the file drivers.list is parsed.  Using the
    Manfred> PGPLOT which comes with the HEASOFT package, I can
    Manfred> enquire the list of enabled drivers in my installation of
    Manfred> HEASOFT 6.6.1 with

    Manfred> grep -v ^\! $HEADAS/../tcltk/pgplot/drivers.list
    Manfred> i.e.
    Manfred> grep -v ^\!  /installation_path/headas-6.6.1/tcltk/pgplot/drivers.list
    Manfred> -- but your source code might be at a different location (if it is still 
    Manfred> there at all).

Another option is to use the query feature of pgplot to see what has
been compiled in to your application:

isis> open_plot("?");
 Graphics device/type (? to see list, default /NULL): ?
 PGPLOT v5.2.0 Copyright 1997 California Institute of Technology
 Interactive devices:
    /TEK4010   (Tektronix 4010 terminal)
    /GF        (GraphOn Tek terminal emulator)
    /RETRO     (Retrographics VT640 Tek emulator)
    /XTERM     (XTERM Tek terminal emulator)
    /TK4100    (Tektronix 4100 terminals)
    /VT125     (DEC VT125 and other REGIS terminals)
    /XDISP     (pgdisp or figdisp server)
    /XWINDOW   (X window window_at_email.domain.hidden    /XSERVE    (A /XWINDOW window that persists for re-use)
 Non-interactive file formats:
    /GIF       (GIF file, landscape orientation)
    /VGIF      (GIF file, portrait orientation)
    /NULL      (Null device, no output)
    /OPS       (Old PostScript file, landscape orientation)
    /OVPS      (Old PostScript file, portrait orientation)
    /OCPS      (Old Colour PostScript file, landscape mode)
    /OVCPS     (Old Colour PostScript file, portrait mode)
    /PPM       (PPM file, landscape orientation)
    /VPPM      (PPM file, portrait orientation)
    /PS        (PostScript file, landscape orientation)
    /VPS       (PostScript file, portrait orientation)
    /CPS       (Colour PostScript file, landscape orientation)
    /VCPS      (Colour PostScript file, portrait orientation)
    /WD        (XWD file, landscape orientation)
    /VWD       (XWD file, portrait orientation)
 Graphics device/type (? to see list, default /NULL): tst.ppm/ppm
1
isis> plot([0:10],[0:10]);
isis> xylabel(5,5,"testing");
isis> close_plot(1);
isis> ! display tst.ppm 

Of course, some of these grandfathered devices are obsolete (e.g.,
tek4010, unless you can parse the output yourself).

And some pgplot drivers have bugs, like the ppm example output above.


-- Dave

David Huenemoerder  617-253-4283 (o); -253-8084 (f); http://space.mit.edu/home/dph
MIT Kavli Institute for Astrophysics and Space Research
70 Vassar St., NE80-6065,
Cambridge, MA  02139
[Admin. Asst.: Elaine Tirrell, 617-253-7480, egt_at_email.domain.hidden
----
You received this message because you are
subscribed to the isis-users list.
To unsubscribe, send a message to
isis-users-request_at_email.domain.hiddenwith the first line of the message as:
unsubscribe
Received on Thu Feb 19 2009 - 10:08:07 EST

This archive was generated by hypermail 2.2.0 : Tue Feb 24 2009 - 19:51:44 EST