Chapter Contents

Previous

Next
COLORS

COLORS



Specifies the foreground colors used to produce your graphics output if you do not specify colors explicitly in program statements.

Used in: GOPTIONS statement; GDEVICE procedure; GDEVICE Gcolors window
Default: device dependent


Syntax
Details

Syntax

GOPTIONS: COLORS=<(colors-list | NONE)>
GDEVICE: COLORS=(<colors-list> )

colors-list
specifies one or more SAS color names. If you specify more than one color, separate each name with a blank. See SAS/GRAPH Colors for information on specifying colors and using a colors list.

To change some of the colors in the colors list and retain others, you can use a null value for colors you do not want to change. For example, to change COLORS=(RED GREEN BLUE) to COLORS=(WHITE GREEN BROWN), you can specify COLORS=(WHITE,,BROWN).

NONE
tells SAS/GRAPH to use only the colors that you explicitly specify in program statements and to ignore the device's default colors list.

Note:   If you specify COLORS=(NONE) and omit a color specification for a graphics element, such as patterns, SAS/GRAPH selects at random one of the colors already specified in your program.  [cautionend]

Featured in: Example 3. Rotating Plot Symbols through the Colors List


Details


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.