Skip to content

Commit 10522a4

Browse files
authored
Merge pull request #334 from akrherz/issue333
fix _hold assignment see #333
2 parents 6cd39d5 + a9e9a26 commit 10522a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3212,7 +3212,8 @@ def _save_use_hold(self, ax, kwargs):
32123212
h = kwargs.pop('hold', None)
32133213
if hasattr(ax, '_hold'):
32143214
self._tmp_hold = ax._hold
3215-
ax._hold = h
3215+
if h is not None:
3216+
ax._hold = h
32163217

32173218
def _restore_hold(self, ax):
32183219
if hasattr(ax, '_hold'):

0 commit comments

Comments
 (0)