Generates a colormap of black, red, yellow, white.
HOT(len)
len |
- |
Optional. An integer, the colormap length. Defaults to the length of the current colormap. |
A table of RGB triples suitable for the SETCOLORMAP function.
clen = length(getcolormap());
density(ravel(rep(0..(clen-1), 32), clen)');hot

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).
W1: cool;showcmap();
W2: copper;showcmap();
W3: hot;showcmap()
W4: pink;showcmap();

W1, W2, W3 and W4 display 32x256 sequential, dark to light colormaps where 256 is the colormap length. The colormaps are not perceptually uniform.
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.
The HOT colormap is designed to mimic the visual appearance of increasing heat or intensity, making it intuitive for viewers to interpret gradients that represent magnitude. It is widely used in heatmaps, intensity maps and any visualization where a "temperature-like" scale is appropriate.