BONE

Purpose:

Generates a blue tinted black & white colormap.

Syntax:

BONE(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());

density(ravel(rep(0..(clen-1), 32), clen)');bone;

 

image\bonemap.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 black (lowest) to white (highest) with blue tints in the middle range.

Example:

W1: bone;showcmap()

W2: gray;showcmap()

 

image\bgmap.png

 

W1 displays a gray scale colormap and W2 displays a modified gray scale colormap with blue tints.

Remarks:

bone by itself sets the colormap and shading.

 

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

 

The BONE colormap resembles the GRAY grayscale look of medical X-ray imagery, soft, smooth and high in contrast. It is often used when a gray scale palette is desired, but with slightly more visual depth and subtle bluish tones.

See Also:

COOL

GRAY

HOT

PINK

RAINBOW

SETCOLORMAP

SETSHADING

SHOWCMAP