You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See #16051 (and links there in) for work related to this. The issue is that the Artist (in this case your contour) overrides what ever input you provide when you create the colorbar. In the mpl33 this will warn you. Both now and in the future you will need to pass the extend kwarg when you create the contour for it to propagate to the color bar.
This approach does not work when used on a 3D plot with Axes3d.contourf. Passing the kwarg extend='both' to the latter function leads to the error: AttributeError: 'PathCollection' object has no attribute 'do_3d_projection'
I made a contour plot over a global map.
Since it is a contour plot, I also plot a colorbar along with it.
Bug report
When I set map.colorbar(..., extend='both'), it does not work at all. The colorbar has no changes.
Can anyone help?
Thank you very much!
Bug summary
Code for reproduction
Actual outcome
Expected outcome
Matplotlib version
print(matplotlib.get_backend())
):The text was updated successfully, but these errors were encountered: