PLASMA

Purpose:

Generates a magenta, red, yellow colormap.

Syntax:

PLASMA(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)');plasma

 

image\plasma.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 magenta (lowest) to yellow (highest).

Example:

W1: inferno;showcmap()

W2: magma;showcmap()

W3: plasma;showcmap()

 

image\impmap.png

 

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

Remarks:

plasma by itself sets the colormap and shading.

 

a = plasma or setcolormap(plasma) returns the RGB values. In this case, use SETSHADING to make the new colormap take effect on an existing density or 2D plot.

 

PLASMA is a perceptually uniform colormap that is more vibrant than INFERNO with a smooth, uniform brightness increase. It is high contrast with very high saturation.

 

See CIVIDIS, INFERNO, MAGMA and VIRIDIS for more perceptually uniform colormaps.

See Also:

CIVIDIS

COOL

HOT

HSV

INFERNO

MAGMA

PINK

RAINBOW

SETCOLORMAP

SETSHADING

SHOWCMAP

VIRIDIS