openmc-dev / plotter

Native plotting GUI for model design and verification
MIT License
43 stars 17 forks source link

Add checkbox for reversing colormap #137

Closed paulromano closed 2 months ago

paulromano commented 3 months ago

When plotting tally data, we provide the full list of colormaps from matplotlib, but there are also reversed versions that are not accessible currently. Sometimes, it is desirable to use the reversed version. For example, the diverging colormap "RdBu" has small values as red and large values as blue. If you want red to mean "hot" and blue to mean "cold", the reversed version "RdBu_r" comes in handy.

This PR simply adds a new checkbox to use the reversed version of the colormap.