functionautumn
Returns the "autumn" color map
Extends from Modelica.Mechanics.MultiBody.Interfaces.partialColorMap (Interface for a function returning a color map).
Information
Syntax
ColorMaps.autumn(); ColorMaps.autumn(n_colors=64);
Description
This function returns the color map "autumn." A color map is a Real[:,3] array where every row represents a color. With the optional argument "n_colors" the number of rows of the returned array can be defined. The default value is "n_colors=64" (it is usually best if n_colors is a multiple of 4). Image of the "autumn" color map:
See also
ColorMaps, colorMapToSvg, scalarToColor.Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n_colors (from partialColorMap) | 64 | Number of colors in the color map |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[n_colors,3] | colorMap (from partialColorMap) | Color map to map a scalar to a color |