Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - Français

Change language to:
English - 日本語 - Português

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Manuel Scilab >> Bibliothèque graphique > Gestion des couleurs > hsvcolormap

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 ncolors. 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.

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])

Authors

Serge Steer

INRIA

<< hsv2rgb Gestion des couleurs jetcolormap >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:24:15 CET 2011