Sets the colormap for density and shaded plots.
SETCOLORMAP(map)
map |
- |
An Nx3 array of RGB (red, green blue) triples. |
Nothing.
all = (0..255)/255
zip = zeros(256, 1);
map1 = ravel(all, all, all);
map2 = ravel(all, zip, all);
map3 = ravel(all, all, zip);
map4 = ravel(zip, all, all);
W1: setcolormap(map1);showcmap();
W2: setcolormap(map2);showcmap();
W3: setcolormap(map3);showcmap();
W4: setcolormap(map4);showcmap();

W1 creates and displays a black to white colormap.
W2 creates and displays a black to magenta colormap.
W3 creates and displays a black to yellow colormap.
W4 creates and displays a black to cyan colormap.
W1: setshading("black", "white");showcmap()
W2: setshading("black", "magenta");showcmap()
W3: setshading("black", "yellow");showcmap()
W4: setshading("black", "lcyan");showcmap()

Same as above, except the colormaps are generated directly by SETSHADING using color names.
The colormap must be an array of N rows by 3 columns where 1 <= N <= 255. Each individual RGB (red, green, blue) value is a real number ranging from 0 to 1.0.
See DEFCOLOR to define a single color.
See SETSHADING to create colormaps by linearly spaning between two or more colors by name.
The colormap must be an array of N rows by 3 columns where 1 <= N <= 255. Each individual RGB (red, green, blue) value is a real number ranging from 0 to 1.0.
See DEFCOLOR to define a single color.
See SETSHADING to create colormaps by linearly spanning between two or more colors by name.
The following built-in colormaps are available:
Red, orange, yellow colormap |
|
Blue tinted gray scale colormap |
|
Blue, green, yellow colormap |
|
Shades of blue |
|
Shades of copper colormap |
|
Repeating red, orange, yellow, green, blue, violet colormap. |
|
Blue, green, yellow colormap |
|
Black & white colormap |
|
Black, red, yellow, white colormap |
|
Red, yellow, green, cyan, blue, magenta, red colormap |
|
Magenta, red, yellow colormap |
|
Magenta, red, yellow colormap |
|
Blue, green, yellow colormap |
|
Black, red, yellow, white light colormap |
|
Magenta, red, yellow colormap |
|
Repeating red, orange, yellow, green, blue, violet colormap. |
|
Visible color spectrum colormap |
|
Magenta, pink, yellow colormap |
|
Green to yellow colormap |
|
Red, blue, green, yellow colormap |
|
Blue, green, yellow colormap |
|
Blue to green colormap |