-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Getting internal "MatplotlibDeprecationWarning: shading='flat' ..." #18595
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
matplotlib/lib/matplotlib/colorbar.py Line 823 in 55fb9f0
Here is the offending line |
This shouldn't be too hard to fix - someone just needs to look and see how the solid colorbar is made and make the x/y the proper length.... |
OK, so its easy to fix the above to the old behaviour. However, I strongly expect the old behaviour was incorrect and dropping the color for your highest contour value. Is that OK? Your last color was basically the color of the second to last contour. |
Is that just clipping? |
Probably: |
hmmmm, are the contour axes still the old style? Because the new style should allow just setting the xlim.... |
Setting xlim/ylim on the colorbar only changes its size, it doesn't draw anything above 12.5 for me. |
Yech. Curious if it ever worked or if we (prob. me) broke something? |
My guess is that this comes from matplotlib/lib/matplotlib/colorbar.py Line 543 in 6970023
i.e. the outline doesn't get updated when you change the axis limits. I think the outline (and patch) should instead be defined in ax.transAxes for things to work? |
Oh hum. I spent about a week of Matplotlib time working on fixing all this, but its a pretty big architecture change. Someone should probably dive in and patch this for the contour case cited above for 3.3.3 |
Bug report
Bug summary
I'm getting this warning:
Code for reproduction
Actual outcome
Expected outcome
No deprecation warning.
Matplotlib version
print(matplotlib.get_backend())
): Qt5AggMatplotlib installed via conda, default channel.
The text was updated successfully, but these errors were encountered: