Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove GeoAxes patch at next Cartopy release #5977

Open
trexfeathers opened this issue May 24, 2024 · 0 comments
Open

Remove GeoAxes patch at next Cartopy release #5977

trexfeathers opened this issue May 24, 2024 · 0 comments

Comments

@trexfeathers
Copy link
Contributor

馃摪 Custom Issue

SciTools/cartopy#2390

iris/lib/iris/plot.py

Lines 46 to 60 in 57096f2

class _GeoAxesPatched(cartopy.mpl.geoaxes.GeoAxes):
# TODO: see cartopy#2390
# Remove this once the bug is addressed in a Cartopy release.
def _draw_preprocess(self, renderer):
super()._draw_preprocess(renderer)
for artist in self.artists:
if hasattr(artist, "_draw_gridliner"):
# Note this is only necessary since Cartopy v0.23, but is not
# wasteful for earlier versions as _draw_gridliner() includes
# a check for whether a draw is necessary.
artist._draw_gridliner(renderer=renderer)
cartopy.mpl.geoaxes.GeoAxes = _GeoAxesPatched

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant