Colors in SAS/GRAPH Software

SAS/GRAPH software lets you set color in these places:

  • Set color on any procedure that generates graphics output.

  • Set color on the SAS statements that enhance procedure output: AXIS, FOOTNOTE, LEGEND, NOTE, PATTERN, SYMBOL, and TITLE.

  • Use the GOPTIONS statement's color options (CBACK=, CBY=, CPATTERN=, CSYMBOL=, CTEXT=, and CTITLE=) to define default colors for graphics elements.

  • Use the GOPTIONS statement's COLORS= option to define a colors list that controls colors for graphics elements when explicit specifications and defaults are unavailable.

  • Rely on your current device's default colors list, which you can view or modify using the GDEVICE procedure.

These methods, singly or in combination, give SAS/GRAPH software the colors it needs to generate graphics output. Regardless of where you specify color, the value you specify for a color must not exceed eight characters and must be in one of the following valid SAS color-naming schemes:

  • RGB (red green blue)

  • CMYK (cyan magenta yellow black)

  • HLS (hue lightness saturation)

  • HSV (hue saturation brightness), also called HSB

  • gray scale

  • predefined SAS color names.







Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement