Colormap creation (interface).
cmap = CL_colormap([[cmap_name, n]])
Creation of colormap (array of RGB values).
This function shall be used as follows:
f = scf();
f.color_map = CL_colormap(...);
- This function has been introduced for compatibility reasons, as the the names of colormap functions have changed as of Scilab 2024.1.0.
- Valid colormap names are derived from the names of the corresponding scilab functions without the "colormap" ending. For instance "jetcolormap" shall be refered to as "jet", "rainbowcolormap" as "rainbow" and so on.
- The allowed predefined names are Scilab version dependent.
- A colormap name can also the name be a user-defined function with the same interface as Scilab colormap functions, that is: cmap = f(n), with cmap a nx3 matrix containing values between 0 and 1.
(string, optional) name of the colormap function to be used. See Scilab help for the list of possible names. Default value is "jet".
(integer, optional) colormap size (number of colors), it should to be >= 3. Default value is 32.
generated colormap (nx3).
CNES