Navigation

Operators and Keywords

Function List:

C++ API

: map = cubehelix ()
: map = cubehelix (n)

Create cubehelix colormap.

This colormap varies from black to white going though blue, green, and red tones while maintaining a monotonically increasing perception of intensity. This is achieved by traversing a color cube from black to white through a helix, hence the name cubehelix, while taking into account the perceived brightness of each channel according to the NTSC specifications from 1953.

rgbplot (cubehelix (256))

The argument n must be a scalar. If unspecified, the length of the current colormap, or 64, is used.

Reference: Green, D. A., 2011, "A colour scheme for the display of astronomical intensity images", Bulletin of the Astronomical Society of India, 39, 289.

See also: colormap.

Demonstration 1

The following code

 ## Show the 'cubehelix' colormap profile and as an image
 cmap = cubehelix (256);
 subplot (2, 1, 1);
  rgbplot (cmap, "composite");
 subplot (2, 1, 2);
  rgbplot (cmap);

Produces the following figure

Figure 1

Package: octave