-
Notifications
You must be signed in to change notification settings - Fork 284
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 GeoAxes
patch at next Cartopy release
#5977
Comments
Cartopy 0.24 is now out. |
Hi! With the release of cartopy 0.24 the current iris 3.10.0 package on conda-forge will throw the following exception when trying to plot a map: TypeError: _GeoAxesPatched._draw_preprocess() missing 1 required positional argument: 'renderer' I could trace back this error to the piece of code that you mention here (i.e., removing it solves this error). MRE: import matplotlib.pyplot as plt
import iris
import iris.quickplot as qplt
fname = iris.sample_data_path("air_temp.pp")
temperature_cube = iris.load_cube(fname)
# Draw the contour with 25 levels.
qplt.contourf(temperature_cube, 25)
# Add coastlines to the map created by contourf.
plt.gca().coastlines()
plt.show() |
Ah, that would be my fault again 😬 . renderer wasn't getting used in |
I'm working on it right now guys: #6171. Unfortunately updating to Cartopy 0.24 has produced some material image test failures so I need to make sure I understand why before we can move forward. If that takes too long or I'm too dumb then I'll have to use a pin in the short term. |
cheers, guys! We're gonna pin ESMValTool's |
@pp-mo I currently have no intention of removing the patch at the next Cartopy release. Could you explain the re-opening? You mentioned to me offline that in several years' time we will probably have a minimum pin |
OK I get it, we don't have a way of scheduling this, so let's just leave it there |
📰 Custom Issue
SciTools/cartopy#2390
iris/lib/iris/plot.py
Lines 46 to 60 in 57096f2
The text was updated successfully, but these errors were encountered: