@@ -3201,23 +3201,25 @@ def set_axes_limits(self,ax=None):
32013201 # Take control of axis scaling:
32023202 ax .set_autoscale_on (False )
32033203 # 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 )
32063206 ax .set_xlim ((self .llcrnrx , self .urcrnrx ))
32073207 ax .set_ylim ((self .llcrnry , self .urcrnry ))
32083208 # if map boundary not yet drawn for elliptical maps, draw it with default values.
32093209 if not self ._mapboundarydrawn or self ._mapboundarydrawn not in ax .patches :
32103210 # 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 ):
32133214 # first draw boundary, no fill
3214- limb1 = self .drawmapboundary (fill_color = 'none' )
3215+ limb1 = self .drawmapboundary (fill_color = 'none' , ax = ax )
32153216 # draw another filled patch, with no boundary.
3216- limb2 = self .drawmapboundary (linewidth = 0 )
3217+ limb2 = self .drawmapboundary (linewidth = 0 , ax = ax )
32173218 self ._mapboundarydrawn = limb2
32183219 # 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 ):
32213223 # turn off axes frame.
32223224 ax .set_frame_on (False )
32233225 # make sure aspect ratio of map preserved.
0 commit comments