Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checkbox for reversing colormap #137

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

paulromano
Copy link
Contributor

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.

@paulromano paulromano requested a review from pshriwise March 24, 2024 19:25
Copy link
Collaborator

@pshriwise pshriwise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty slick! Thanks @paulromano

@pshriwise pshriwise merged commit e93a120 into openmc-dev:develop Apr 25, 2024
1 check passed
@paulromano paulromano deleted the reverse-colormap branch April 25, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants