-
Notifications
You must be signed in to change notification settings - Fork 19
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
Remove matplotlib 3.8+ pin #160
Comments
Actually, I think this may be a bug in matplotlib. Something doesn't seem to be working properly in the code that finds the nearby contours to label. Unfortunately we don't get an error in the plot_contour_labels usage example like we do in geocat-examples, but the usage example is also impacted. See here: https://geocat-viz.readthedocs.io/en/latest/examples/plot_contour_labels.html I think we should probably pin to <3.8 and I'll report something over on the matplotlib repo once I have a little better of an idea what's going on. |
Ok, it looks like this is more than one issue though some have been resolved by fixes upstream. The remaining (after updating matplotlib and cartopy) spurious lines in the (-58.78, 67.05) The remaining labels still overlap a bit more than they used to, but I think we should probably just thin out the number of labeled contour locations for the usage example. |
Describe the bug
The
plot_contour_labels
usage example is not working properly with matplotlib 3.8+.Most of this was because of issues with matplotlib and cartopy many of which have now been addressed, but few label locations are impacted by matplotlib/matplotlib#27333. Particularly for this usage example I think we should still just remove this pin and thin the number of labels (including the problematic ones).
You can see the problems here:
Likely related to these changes:
Related issues over on cartopy:
main
SciTools/cartopy#2207Where I'm at in sorting this out:
I think the should throw in a version pin for the time being.
Side note:
The text was updated successfully, but these errors were encountered: