SHOWCMAP

Purpose:

Displays the current colormap as a density plot.

Syntax:

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.

Returns:

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.

Example:

W1: setcolormap(turbo);showcmap

 

image\showcmap.png

 

sets the colormap to colors ranging from blue to red and displays the colors as a density plot.

Example:

W1: setcolormap(turbo);showcmap'

 

Transposed Showcmap

Same as above, except the colormap is transposed to produce horizontally increasing color indices.

Example:

W1: spline2(ravel(gnorm(100, 1), 10), 3)

W2: showcmap(w1)

 

Shows the colormap in W2 scaled to the Z values of W1.

Remarks:

Use SETSHADING to make a new colormap take effect on an existing density plot.

 

The following built-in colormaps are available:

 

AUTUMN

Red, orange, yellow colormap

BONE

Blue tinted gray scale colormap

CIVIDIS

Blue, green, yellow colormap

COOL

Shades of blue

COPPER

Shades of copper colormap

FLAG

Repeating red, orange, yellow, green, blue, violet colormap.

GOULDIAN

Blue, green, yellow colormap

GRAY

Black & white colormap

HOT

Black, red, yellow, white colormap

HSV

Red, yellow, green, cyan, blue, magenta, red colormap

INFERNO

Magenta, red, yellow colormap

MAGMA

Magenta, red, yellow colormap

PARULINE

Blue, green, yellow, orange colormap

PINK

Black, red, yellow, white light colormap

PLASMA

Magenta, red, yellow colormap

PRISM

Repeating red, orange, yellow, green, blue, violet colormap.

RAINBOW

Visible color spectrum colormap

SPRING

Magenta, pink, yellow colormap

SUMMER

Green to yellow colormap

TURBO

Red, blue, green, yellow colormap

VIRIDIS

Blue, green, yellow colormap

WINTER

Blue to green colormap

 

See Also:

GETCOLORMAP

SAVECMAP

SETCOLORMAP

SETCRANGE

SETSHADING