About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/colorsys.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 colorsys Context: chips

Synopsis

Sets the color system for hardcopy plots.

Syntax

chips> colorsys <color>

Description

In this context, "hardcopy" refers to both sending the plot directly to a printer and printing it to a postscript file.

Argument: <color>
Description: color system
Options: CMYK, GRAYSCALE, RGB
Default: RGB

More information on creating hardcopies is available from "ahelp chips print".

CIAO allows some plot attributes to be changed using the ChIPS state object and resource file. See "ahelp chips" for further details.

Unlike most other ChIPS commands, the "colorsys" command modifies the state object. This means that once the color system is changed, the command does not need to be reissued. The current color system may also be determined by checking the state object, as shown in the EXAMPLES section.

Example 1

chips> x = [1:10:0.1]
chips> y = sin(x)
chips> () = curve( x, y )
chips> simpleline
chips> red
chips> axes yellow
chips> colorsys grayscale
chips> print postfile gray.ps

A plot is created and a few attributes are modified. The color system is then set to grayscale, and a postscript file is created.

Example 2

chips> print(chips.colorsys)
rgb
chips> colorsys cmyk
chips> print(chips.colorsys)
cmyk

This illustrates that changing the color system on the command line also updates the ChIPS state object field.

Bugs

See the bugs page for ChIPS on the CIAO website for an up-to-date listing of known bugs.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.