@@ -3201,23 +3201,25 @@ def set_axes_limits(self,ax=None):
3201
3201
# Take control of axis scaling:
3202
3202
ax .set_autoscale_on (False )
3203
3203
# update data limits for map domain.
3204
- corners = ((self .llcrnrx ,self .llcrnry ), (self .urcrnrx ,self .urcrnry ))
3205
- ax .update_datalim ( corners )
3204
+ corners = ((self .llcrnrx , self .llcrnry ), (self .urcrnrx , self .urcrnry ))
3205
+ ax .update_datalim (corners )
3206
3206
ax .set_xlim ((self .llcrnrx , self .urcrnrx ))
3207
3207
ax .set_ylim ((self .llcrnry , self .urcrnry ))
3208
3208
# if map boundary not yet drawn for elliptical maps, draw it with default values.
3209
3209
if not self ._mapboundarydrawn or self ._mapboundarydrawn not in ax .patches :
3210
3210
# elliptical map, draw boundary manually.
3211
- if (self .projection in ['ortho' ,'geos' ,'nsper' ,'aeqd' ] and
3212
- self ._fulldisk ) or self .round or self .projection in _pseudocyl :
3211
+ if ((self .projection in ['ortho' , 'geos' , 'nsper' , 'aeqd' ] and
3212
+ self ._fulldisk ) or self .round or
3213
+ self .projection in _pseudocyl ):
3213
3214
# first draw boundary, no fill
3214
- limb1 = self .drawmapboundary (fill_color = 'none' )
3215
+ limb1 = self .drawmapboundary (fill_color = 'none' , ax = ax )
3215
3216
# draw another filled patch, with no boundary.
3216
- limb2 = self .drawmapboundary (linewidth = 0 )
3217
+ limb2 = self .drawmapboundary (linewidth = 0 , ax = ax )
3217
3218
self ._mapboundarydrawn = limb2
3218
3219
# for elliptical map, always turn off axis_frame.
3219
- if (self .projection in ['ortho' ,'geos' ,'nsper' ,'aeqd' ] and
3220
- self ._fulldisk ) or self .round or self .projection in _pseudocyl :
3220
+ if ((self .projection in ['ortho' , 'geos' , 'nsper' , 'aeqd' ] and
3221
+ self ._fulldisk ) or self .round or
3222
+ self .projection in _pseudocyl ):
3221
3223
# turn off axes frame.
3222
3224
ax .set_frame_on (False )
3223
3225
# make sure aspect ratio of map preserved.
0 commit comments