CIVIDIS

Purpose:

Generates a colormap of dark blue, green, yellow.

Syntax:

CIVIDIS(len)

len

-

Optional. An integer, the colormap length. Defaults to the length of the current colormap.

Returns:

A table of RGB triples suitable for the SETCOLORMAP function.

Example:

clen = length(getcolormap());

W1: density(ravel(rep(0..(clen-1), 32), clen)');cividis

 

image\cividis.png

 

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.

Example:

W1: cividis;showcmap()

W2: gouldian;showcmap()

W3: paruline;showcmap()

W4: viridis;showcmap()

 

image\cvpg.png

 

W1, W2, W3 and W4 display similar 32x256 colormaps where 256 is the colormap length.

Remarks:

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.

See Also:

COOL

GOULDIAN

HOT

INFERNO

MAGMA

PINK

PLASMA

RAINBOW

SETCOLORMAP

SETSHADING

SHOWCMAP

TURBO

VIRIDIS