Navigation

Operators and Keywords

Function List:

C++ API

Function File: map = cubehelix ()
Function File: 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 transversing 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

 subplot (1, 2, 1)
 rgbplot (cubehelix (256), "composite")
 subplot (1, 2, 2)
 rgbplot (cubehelix (256))

Produces the following figure

Figure 1

Package: octave