@@ -2820,22 +2820,23 @@ def set_axes_limits(self,ax=None):
28202820 ax .update_datalim ( corners )
28212821 ax .set_xlim ((self .llcrnrx , self .urcrnrx ))
28222822 ax .set_ylim ((self .llcrnry , self .urcrnry ))
2823- # if map boundary not yet drawn, draw it with default values.
2824- if not self ._mapboundarydrawn :
2825- # is the map boundary already drawn on the current axes?
2826- if self ._mapboundarydrawn not in ax .patches :
2827- # elliptical map, turn off axis_frame, draw boundary manually.
2828- if (self .projection in ['ortho' ,'geos' ,'nsper' ,'aeqd' ] and
2829- self ._fulldisk ) or self .round or self .projection in _pseudocyl :
2830- # turn off axes frame.
2831- ax .set_frame_on (False )
2832- # first draw boundary, no fill
2833- limb1 = self .drawmapboundary (fill_color = 'none' )
2834- # draw another filled patch, with no boundary.
2835- limb2 = self .drawmapboundary (linewidth = 0 )
2836- self ._mapboundarydrawn = True
2837- else : # square map, just turn on axis frame.
2838- ax .set_frame_on (True )
2823+ # if map boundary not yet drawn for elliptical maps, draw it with default values.
2824+ if not self ._mapboundarydrawn or self ._mapboundarydrawn not in ax .patches :
2825+ # elliptical map, draw boundary manually.
2826+ if (self .projection in ['ortho' ,'geos' ,'nsper' ,'aeqd' ] and
2827+ self ._fulldisk ) or self .round or self .projection in _pseudocyl :
2828+ # first draw boundary, no fill
2829+ limb1 = self .drawmapboundary (fill_color = 'none' )
2830+ # draw another filled patch, with no boundary.
2831+ limb2 = self .drawmapboundary (linewidth = 0 )
2832+ self ._mapboundarydrawn = limb2
2833+ # for elliptical map, always turn off axis_frame.
2834+ if (self .projection in ['ortho' ,'geos' ,'nsper' ,'aeqd' ] and
2835+ self ._fulldisk ) or self .round or self .projection in _pseudocyl :
2836+ # turn off axes frame.
2837+ ax .set_frame_on (False )
2838+ else : # square map, always turn on axis frame.
2839+ ax .set_frame_on (True )
28392840 # make sure aspect ratio of map preserved.
28402841 # plot is re-centered in bounding rectangle.
28412842 # (anchor instance var determines where plot is placed)
0 commit comments