hsvcolormap

Hue-saturation-value colormap

Calling Sequence

cmap = hsvcolormap(n)

Arguments

:n integer >= 1, the colormap size. : :cmap matrix with 3 columns [R,G,B]. :

Description

hsvcolormap computes a colormap with `n`colors. This colormap varies the hue component of the hsv color model. The colors begin with red, pass through yellow, green, cyan, blue, magenta, and return to red. The map is particularly useful for displaying periodic functions.

Sample

Examples

t=[0:0.1:2*%pi]'; z=`sin`_(t)*`cos`_(t');
f=`gcf`_();f.color_map=hsvcolormap(64);
`plot3d1`_(t,t,z,35,45,"X@Y@Z",[-2,2,2])

See Also

Table Of Contents

This Page