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
colorbar(boundaries=...) doesn't work so well with nonlinear norms #12312
Comments
You get "properly" positionned ticks when in addition specfiying
|
Thanks for pointing this out. I don't think this should be an option, though... (it sound be the default and only behavior... no?) |
When overhauling colorbar I didn’t really look at boundary colorbars. Maybe they need a similar overhaul |
Oops. Didn’t see the above. I’d be in favour of proportional=true as a default. |
I would have though the "usual" (if you can speak of "usual" for something that declared "unusual") use case would be something like
Here the use of The consequence of such change is then the usual "My plot looks different, what can I do?". Hence my vote here would be: Don't break the API. |
As the docstring quote above says:
I guess we can add BoundaryNorm to the list of reasonable use cases. But it would be nice if NoNorm and BoundaryNorm could somehow signal that they need this behavior to the colorbar machinery, rather than the user having to specify it. |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
Bug report
Bug summary
Code for reproduction
Actual outcome
Expected outcome
Either properly positioned boundaries, or (better) disallow passing boundaries in such cases.
Note that the docstrings in colorbar.py say
but that still ends up part of the public API, which makes my intended fix for #7320 more difficult...
Matplotlib version
print(matplotlib.get_backend())
): qt5aggThe text was updated successfully, but these errors were encountered: