DADiSP Worksheet Functions > Function Categories > Colors > SHOWCMAP
Displays the current colormap as a density plot.
SHOWCMAP(series, len)
series |
- |
Optional. A series with a colormap, the source colormap. Defaults to the current colormap. |
len |
- |
Optional. An integer, the colormap length. Defaults to the length of the current colormap. |
A table of values graded from 0 to 255 displayed as an image. If a series is specified, the Y values of the colormap is scaled to the series.
setcolormap(rainbow);
showcmap
sets the colormap to colors ranging from blue to red and displays the colors as a density plot.
W1: spline2(ravel(gnorm(100, 1), 10), 3)
W2: showcmap(w1)
Shows the colormap in W2 scaled to the Z values of W1.
Use SETSHADING to make a new colormap take effect on an existing density plot.