Navigation

Operators and Keywords

Function List:

C++ API

: map = prism ()
: map = prism (n)

Create color colormap. This colormap cycles through red, orange, yellow, green, blue and violet with each index change.

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

See also: colormap.

Demonstration 1

The following code

 ## Show the 'prism' colormap profile and as an image
 cmap = prism (18); # 6 colors, therefore cycle 3 times
 subplot (2, 1, 1);
  rgbplot (cmap, "composite");
 subplot (2, 1, 2);
  rgbplot (cmap);

Produces the following figure

Figure 1

Package: octave