SAVECMAP

Purpose:

Saves and automatically restores the Worksheet colormap.

Syntax:

SAVECMAP

Returns:

Nothing. The colormap is saved to a global variable and automatically restored when the Worksheet is loaded.

Example:

W1: spline2(rand(10), 4);setplottype(3)

rainbow

savecmap

 

creates a density plot in W1 by interpolating a grid of 10x10 random values. The image is shaded with the RAINBOW colormap and the colormap is saved with the Worksheet. When the Worksheet is reloaded, the RAINBOW colormap is automatically restored.

Remarks:

SAVECMAP uses RESETMAP to restore the colormap.

 

If set, the color range as specified by SETCRANGE is also restored.

See Also:

GETCOLORMAP

RESETMAP

SETCOLORMAP

SETCRANGE