View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

splot - invert colour

babbloo wrote on Dec 06, 2009

Hi

When I use splot to analyze the FITS spectra, is there anything I could do to save the image in black and white format, so that it looks clear when I print it on a paper?

I need to include images in a report and currently taking screenshots of the green and black coloured screen. It doesn't look really good when I print them out.

Can you please help me out in this at the earliest?

Thanks

Mike Fitzpatrick wrote on Dec 06, 2009

For inclusion in another document, the simplest thing is to use the 'eps' device name to create a B&W EPS file in the current directory called 'sgiXXXX.eps' (where the XXXX is some process id). You can do this with ":.snap eps" from an interactive cursor, or by setting the task 'device' parameter to 'eps' for non-interactive tasks like CONTOUR. You'll need to follow this with a ":.gflush" or "gflush" at the cl prompt to flush the plot to the file.

Similarly, there is a 'g-gif' device that will produce a 640x480 GIF image of the plot.
Another solution is simply to use an Xterm instead of an XGterm and set the fore/background colors appropriately, however the EPS will be scalable within the doc.

If you get an error about 'sgidispatch: command not found' then the iraf commands directory is not in the path included in your .cshrc/.bashrc file, or if you're using SciSoft there may be a know problem that this command isn't installed (search the forums for SciSoft for a solution).

-Mike

Last post on Dec 06, 2009