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

More control on the width of the white zone of divergent colorbars #90

Open
RondeauG opened this issue Jun 1, 2023 · 0 comments
Open
Labels
colormaps Related to colormaps or colorbars enhancement New feature or request

Comments

@RondeauG
Copy link
Contributor

RondeauG commented Jun 1, 2023

Description

I have this colorbar:
image

Let's say that I'm not interested in values below ±4 (they are within the internal variability, or whatever). I would appreciate a way to easily hide them and associate all of that range to a white color.

What I did

I can use da.where(np.abs(da) > 4) to hide those grid cells on the graph itself, but the colorbar will stay the same and will be confusing. This is not a solution.

Ideally, I would also like the color gradient to start after the white zone (±4 in this example), which would not happen with the .where() solution.

@RondeauG RondeauG added enhancement New feature or request colormaps Related to colormaps or colorbars labels Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
colormaps Related to colormaps or colorbars enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant