set ccolor

This command sets the color of the plotted contours.

Syntax

If ccolor is set to rainbow or revrain, then GrADS will use the default rainbow sequence to assign colors to individual contours, resulting in a pleasing color palette that spans the range of the plotted values. The rainbow option starts with purple for the minimum contour level and ends with red for the maximum contour level. The revrain option goes the other way, starting with red and ending with purple.

To draw all contours with the same color, use the second option, where color# may be one of the 16 GrADS default colors or the number of a user-defined color created with set rgb.

Usage Notes

  1. set ccolor is reset by entering clear or display.

  2. The color sequence for the default rainbow palette is: 9 14 4 11 5 13 3 10 7 12 8 2 6 (or the reverse order for the revrain option.) These colors may be overridden with the set rbcols command.

  3. If the number of colors in the rainbow palette is smaller than the number of contour levels, then some contour colors will be repeated -- i.e. not every contour color will be unique. Likewise, if the number of colors in the rainbow palette is larger than the number of contour levels, then some colors will be omitted.

  4. When overlaying contour plots, GrADS will automatically change the color of the contours for each successive plot in order to distinguish between different variables. The default order is: rainbow, foreground, 3 (green), 7 (yellow), 2 (red), 6 (magenta), 9 (purple), ....