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 |
---|---|
autumn | Returns the "autumn" color map |
gray | Returns the "gray" color map |
hot | Returns the "hot" color map |
jet | Returns the "jet" color map |
spring | Returns the "spring" color map |
summer | Returns the "summer" color map |
winter | Returns the "winter" 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).
Type | Name | Description |
---|---|---|
Integer | n_colors | Number of colors in the color map |
Type | Name | Description |
---|---|---|
Real | colorMap[n_colors,3] | Color map to map a scalar to a color |
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).
Type | Name | Description |
---|---|---|
Integer | n_colors | Number of colors in the color map |
Type | Name | Description |
---|---|---|
Real | colorMap[n_colors,3] | Color map to map a scalar to a color |
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).
Type | Name | Description |
---|---|---|
Integer | n_colors | Number of colors in the color map |
Type | Name | Description |
---|---|---|
Real | colorMap[n_colors,3] | Color map to map a scalar to a color |
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).
Type | Name | Description |
---|---|---|
Integer | n_colors | Number of colors in the color map |
Type | Name | Description |
---|---|---|
Real | colorMap[n_colors,3] | Color map to map a scalar to a color |
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).
Type | Name | Description |
---|---|---|
Integer | n_colors | Number of colors in the color map |
Type | Name | Description |
---|---|---|
Real | colorMap[n_colors,3] | Color map to map a scalar to a color |
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).
Type | Name | Description |
---|---|---|
Integer | n_colors | Number of colors in the color map |
Type | Name | Description |
---|---|---|
Real | colorMap[n_colors,3] | Color map to map a scalar to a color |
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).
Type | Name | Description |
---|---|---|
Integer | n_colors | Number of colors in the color map |
Type | Name | Description |
---|---|---|
Real | colorMap[n_colors,3] | Color map to map a scalar to a color |
Generated 2018-12-12 12:12:55 EST by MapleSim.