DADiSP Worksheet Functions > Function Categories > Colors > HOT

 

HOT

Purpose:

Generates a colormap of black, red, yellow, white.

Syntax:

HOT(len)

len

-

Optional. An integer, the colormap length. Defaults to the length of the current colormap.

Returns:

A table of RGB triples suitable for the SETCOLORMAP function.

Example:

clen = length(getcolormap());

density(ravel(rep(0..(clen-1), 32), clen)');

hot;

 

image\hotpic.gif

 

creates a table of 32 x N (where N == colormap length) RBG values and displays the resulting colors. The resulting image is a vertical plot of colors ranging from black (lowest) to red to yellow to white (highest).

Remarks:

hot by itself sets the colormap and shading.

 

a = hot or setcolormap(hot) returns the RGB values. In this case, use SETSHADING to make the new colormap take effect on an existing density or 2D plot.

See Also:

COOL

COPPER

GRAY

PINK

RAINBOW

SETCOLORMAP

SETSHADING

SHOWCMAP