Sets the color of all the columns of a series.
SETALLCOLOR(series, colors)
series |
- |
Optional. A single or multi-column series. Defaults to the current Window. |
colors |
- |
Optional. A series, the list of color values. Defaults to the automatic color list. |
Nothing, sets the color of each series column.
W1: cumsum(randn(100, 8))
W2: W1;setallcolors()
W3: setallcolors(w0, {seriesred, seriesgreen, seriesgold})

W1 contains a 100x8 multi-column series
W2 sets the colors of each column of the multi-column series.
W3 is similar, except three colors are explicitly specified. Because there are more series than colors, the colors repeat.
The range of colors available is machine-dependent. The color names shown in the example are actually pre-defined macros representing some of the colors available on any color machine.
See SETCOLOR to set the color of an individual series.
See COLORSTR to convert a color name into a color index.
See GETCOLOR to returns a series color.