Navigation

Operators and Keywords

Function List:

C++ API

Function File: map = gmap40 ()
Function File: map = gmap40 (n)

gmap40 is deprecated and will be removed in Octave version 4.4.

Create color colormap. The colormap consists of red, green, blue, yellow, magenta and cyan.

This colormap is specifically designed for users of gnuplot 4.0 where these 6 colors are the allowable ones for patch objects.

The argument n must be a scalar. If unspecified, a length of 6 is assumed. Larger values of n result in a repetition of the above colors.

See also: colormap.

Demonstration 1

The following code

 ## Show the 'gmap40' colormap as an image
 image (1:6, linspace (0, 1, 6), repmat ((1:6)', 1, 6));
 axis ([1, 6, 0, 1], "ticy", "xy");
 colormap (gmap40 (6));

Produces the following output

warning: gmap40 is obsolete and will be removed from a future version of Octave

and the following figure

Figure 1

Package: octave