DADiSP Worksheet Functions > Function Categories > Colors > SHOWCMAP

 

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:

setcolormap(rainbow);

showcmap

 

image\showcmappic.gif

 

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.

Remarks:

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

See Also:

GETCOLORMAP

SAVECMAP

SETCOLORMAP

SETCRANGE

SETSHADING