Generates a colormap of dark blue, green, yellow.
CIVIDIS(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());
W1: density(ravel(rep(0..(clen-1), 32), clen)');cividis

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 dark blue (lowest) to green to yellow.
W1: cividis;showcmap()
W2: gouldian;showcmap()
W3: paruline;showcmap()
W4: viridis;showcmap()

W1, W2, W3 and W4 display similar 32x256 colormaps where 256 is the colormap length.
cividis by itself sets the colormap and shading.
a = cividis or setcolormap(cividis) returns the RGB values. In this case, use SETSHADING to make the new colormap take effect on an existing density or 2D plot.
CIVIDIS as a modification of the perceptually uniform VIRIDIS colormap and is optimal for viewing by those with or without color vision deficiency.
See INFERNO, MAGMA, PLASMA and VIRIDIS for more perceptually uniform colormaps.