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.
W1: setcolormap(turbo);showcmap

sets the colormap to colors ranging from blue to red and displays the colors as a density plot.
W1: setcolormap(turbo);showcmap'

Same as above, except the colormap is transposed to produce horizontally increasing color indices.
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.
The following built-in colormaps are available:
Red, orange, yellow colormap |
|
Blue tinted gray scale colormap |
|
Blue, green, yellow colormap |
|
Shades of blue |
|
Shades of copper colormap |
|
Repeating red, orange, yellow, green, blue, violet colormap. |
|
Blue, green, yellow colormap |
|
Black & white colormap |
|
Black, red, yellow, white colormap |
|
Red, yellow, green, cyan, blue, magenta, red colormap |
|
Magenta, red, yellow colormap |
|
Magenta, red, yellow colormap |
|
Blue, green, yellow, orange colormap |
|
Black, red, yellow, white light colormap |
|
Magenta, red, yellow colormap |
|
Repeating red, orange, yellow, green, blue, violet colormap. |
|
Visible color spectrum colormap |
|
Magenta, pink, yellow colormap |
|
Green to yellow colormap |
|
Red, blue, green, yellow colormap |
|
Blue, green, yellow colormap |
|
Blue to green colormap |