This command sets the color of the plotted contours.
set ccolor rainbow|
set ccolor color#
ccolor is set to
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.
set ccoloris reset by entering
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
revrainoption.) These colors may be overridden with the
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.
- 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), ....