Sets the color system for hardcopy plots.
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.
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.
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.
|