DADiSP Worksheet Functions > Function Categories > Colors > SAVECMAP
Saves and automatically restores the Worksheet colormap.
SAVECMAP
Nothing. The colormap is saved to a global variable and automatically restored when the Worksheet is loaded.
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.
SAVECMAP uses RESETMAP to restore the colormap.
If set, the color range as specified by SETCRANGE is also restored.