-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
SymLogNorm colorbar incorrect on master #16280
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
Comments
That example is pretty broken anyways. Colorbars changed to behave more like normal axes, though I thought they changed in 3.1. Can you bisect this and see what commit made this change? I'm ill-disposed to |
@jklymak good job I'm well-disposed 😉 - I'll try to look into this as I think I have the same issue too! |
Bisects to dc51a68 |
Hmm, well not surprising. I guess the hand-made axes handling that used to be in colorbar did something special with |
@dstansby, out of curiosity how did you bisect that so fast? When I do a git bisect and rebuild with |
You don’t need to pip install each time if you don’t need to rebuild any of the c code. (And you’ve used pip install -e) |
Some more tricks (everything here assumes you're in a -e install):
|
So it seems that |
@greglucas Using |
Thanks for the helpful hints on commands! A quick search through the docs doesn't indicate anything telling me about |
Bug report
Bug summary
The colormap/tick locations within the colorbar are not being updated properly with a SymLogNorm on master. I think this is different than #16269 because it is actually creating the colorbar, just a wrong one.
Compare the previous correct version:
https://matplotlib.org/3.1.0/gallery/userdemo/colormap_normalizations_symlognorm.html
with a fresh checkout of master:
Difference in the colorbar of the top axis.
The text was updated successfully, but these errors were encountered: