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

Make Colorbar more reliable #315

Merged
merged 3 commits into from
Sep 8, 2024
Merged

Make Colorbar more reliable #315

merged 3 commits into from
Sep 8, 2024

Conversation

kbarros
Copy link
Member

@kbarros kbarros commented Sep 8, 2024

Fix subtle problems associated with the Colorbar used in plot_intensities. These problems arose primarily when all intensities were very close to zero, with small numerical roundoff, such that the suggested colorrange pair was non-ascending. This PR adds logic to ensure that the suggested colorrange is always strictly ascending. For the special case of uniformly zero intensity, the selected color will correspond to the low end of the colorrange.

@kbarros kbarros merged commit 5e10823 into main Sep 8, 2024
4 checks passed
@kbarros kbarros deleted the colorbar-bounds branch September 8, 2024 18:49
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.

1 participant