Library of functions returning color maps
This package contains functions that return color maps. A color map is a Real[:,3] array where every row represents a color. Currently the following color maps are returned from the respective function:
Extends from Modelica.Icons.FunctionsPackage (Icon for packages containing functions).
Name | Description |
---|---|
jet | Returns the "jet" color map |
hot | Returns the "hot" color map |
gray | Returns the "gray" color map |
spring | Returns the "spring" color map |
summer | Returns the "summer" color map |
autumn | Returns the "autumn" color map |
winter | Returns the "winter" color map |
Returns the "jet" color map
ColorMaps.jet(); ColorMaps.jet(n_colors=64);
This function returns the color map "jet." 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 "jet" color map:
Extends from Modelica.Mechanics.MultiBody.Interfaces.partialColorMap (Interface for a function returning a color map).
Name | Description |
---|---|
n_colors | Number of colors in the color map |
Name | Description |
---|---|
colorMap[n_colors, 3] | Color map to map a scalar to a color |
Returns the "hot" color map
ColorMaps.hot(); ColorMaps.hot(n_colors=64);
This function returns the color map "hot." 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 "hot" color map:
Extends from Modelica.Mechanics.MultiBody.Interfaces.partialColorMap (Interface for a function returning a color map).
Name | Description |
---|---|
n_colors | Number of colors in the color map |
Name | Description |
---|---|
colorMap[n_colors, 3] | Color map to map a scalar to a color |
Returns the "gray" color map
ColorMaps.gray(); ColorMaps.gray(n_colors=64);
This function returns the color map "gray." 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 "gray" color map:
Extends from Modelica.Mechanics.MultiBody.Interfaces.partialColorMap (Interface for a function returning a color map).
Name | Description |
---|---|
n_colors | Number of colors in the color map |
Name | Description |
---|---|
colorMap[n_colors, 3] | Color map to map a scalar to a color |
Returns the "spring" color map
ColorMaps.spring(); ColorMaps.spring(n_colors=64);
This function returns the color map "spring." 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 "spring" color map:
Extends from Modelica.Mechanics.MultiBody.Interfaces.partialColorMap (Interface for a function returning a color map).
Name | Description |
---|---|
n_colors | Number of colors in the color map |
Name | Description |
---|---|
colorMap[n_colors, 3] | Color map to map a scalar to a color |
Returns the "summer" color map
ColorMaps.summer(); ColorMaps.summer(n_colors=64);
This function returns the color map "summer." 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 "summer" color map:
Extends from Modelica.Mechanics.MultiBody.Interfaces.partialColorMap (Interface for a function returning a color map).
Name | Description |
---|---|
n_colors | Number of colors in the color map |
Name | Description |
---|---|
colorMap[n_colors, 3] | Color map to map a scalar to a color |
Returns the "autumn" color map
ColorMaps.autumn(); ColorMaps.autumn(n_colors=64);
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:
Extends from Modelica.Mechanics.MultiBody.Interfaces.partialColorMap (Interface for a function returning a color map).
Name | Description |
---|---|
n_colors | Number of colors in the color map |
Name | Description |
---|---|
colorMap[n_colors, 3] | Color map to map a scalar to a color |
Returns the "winter" color map
ColorMaps.winter(); ColorMaps.winter(n_colors=64);
This function returns the color map "winter." 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 "winter" color map:
Extends from Modelica.Mechanics.MultiBody.Interfaces.partialColorMap (Interface for a function returning a color map).
Name | Description |
---|---|
n_colors | Number of colors in the color map |
Name | Description |
---|---|
colorMap[n_colors, 3] | Color map to map a scalar to a color |