Skip to content

Commit

Permalink
MAINT: Handle removal of Axes._hold in Matplotlib.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Sep 25, 2018
1 parent 994c2af commit 5bc8d7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cartopy/mpl/geoaxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,8 @@ def _pcolormesh_patched(self, *args, **kwargs):
import matplotlib.colors as mcolors
import matplotlib.collections as mcoll

if not self._hold:
# Remove this check when only MPL >= 3.0 is supported.
if not getattr(self, '_hold', True):
self.cla()

alpha = kwargs.pop('alpha', None)
Expand Down

0 comments on commit 5bc8d7f

Please sign in to comment.