ModelicaStandardLibrary icon indicating copy to clipboard operation
ModelicaStandardLibrary copied to clipboard

colormap cool-warm

Open thorade opened this issue 4 months ago • 0 comments

There are some colormaps included in MSL:
https://github.com/modelica/ModelicaStandardLibrary/tree/3f72865f0764cad0f2fb2d47d1e3fc0bf96ec4e6/Modelica/Mechanics/MultiBody/Visualizers/Colors/ColorMaps

An overview / comparison is shown in this png image:
https://github.com/modelica/ModelicaStandardLibrary/blob/master/Modelica/Resources/Images/Mechanics/MultiBody/Visualizers/Colors/ColorMaps/ColorMaps.png

For visualization of temperature from hot to cold, it would be nice to have a color map similar to "Smooth Cool Warm" from this page: https://www.kennethmoreland.com/color-advice/ Other maps from the same page might also be nice additions, e.g. Fast or Plasma.

A colormap based on traffic light color would also be nice: red, yellow, green. To visualize e.g. a percentage opening. Example: https://stackoverflow.com/a/53754137/12194389

There are of course a ton of more examples, e.g. in matplotlib: https://matplotlib.org/stable/users/explain/colors/colormaps.html

thorade avatar Aug 27 '25 09:08 thorade