Skip to content

Commit fb711e3

Browse files
committed
Clear saved lsmask is new lsmask is passed
1 parent 76d02b7 commit fb711e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3901,6 +3901,9 @@ def drawlsmask(self,land_color="0.8",ocean_color="w",lsmask=None,
39013901
# look for axes instance (as keyword, an instance variable
39023902
# or from plt.gca().
39033903
ax = kwargs.pop('ax', None) or self._check_ax()
3904+
# Clear saved lsmask is new lsmask is passed
3905+
if lsmask is not None or lsmask_lons is not None or lsmask_lats is not None:
3906+
self.lsmask = None
39043907
# if lsmask,lsmask_lons,lsmask_lats keywords not given,
39053908
# read default land-sea mask in from file.
39063909
if lsmask is None or lsmask_lons is None or lsmask_lats is None:

0 commit comments

Comments
 (0)