-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Bug]: Colorbar with log scales wrong format #23389
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
Agree this is broken inadvertently. We refactored some things in colorbar, but the infinite API complexity that crept in over the years is causing problems here again. I'll try to fix, but we almost need a separate colorbar for contour, rather than tests all over the place. |
BTW, a workaround here is to simply call cbar.ax.set_yscale('log') at the end of the script. |
Interesting, I shall try it out, thanks! |
Sorry, that is my Python version, my bad. I'm using Matplotlib version 3.5.1. |
This bug looks like it was fixed in mpl 3.6.3 so you will need to upgrade atleast that far to get the fix. |
Bug summary
The colour bar ticks are weirdly formatted when using a logarithmic scale when using version 3.5.0 or later.
Code for reproduction
Actual outcome
Expected outcome
Running the exact same code on 3.4.2 produces the expected behaviour

Additional information
This worked perfectly on version 3.4.2
Operating system
Windows
Matplotlib Version
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
pip
The text was updated successfully, but these errors were encountered: