@@ -3252,7 +3252,6 @@ def set_xscale(self, value, **kwargs):
3252
3252
- `matplotlib.scale.SymmetricalLogScale`
3253
3253
- `matplotlib.scale.LogitScale`
3254
3254
3255
-
3256
3255
Notes
3257
3256
-----
3258
3257
By default, Matplotlib supports the above mentioned scales.
@@ -3265,7 +3264,9 @@ def set_xscale(self, value, **kwargs):
3265
3264
ax .xaxis ._set_scale (value , ** kwargs )
3266
3265
ax ._update_transScale ()
3267
3266
ax .stale = True
3268
- self ._request_autoscale_view (scaley = False )
3267
+ # Force autoscaling now, to take advantage of the scale locator's
3268
+ # nonsingular() before it possibly gets swapped out by the user.
3269
+ self .autoscale_view (scaley = False )
3269
3270
3270
3271
@cbook ._make_keyword_only ("3.2" , "minor" )
3271
3272
def get_xticks (self , minor = False ):
@@ -3637,7 +3638,6 @@ def set_yscale(self, value, **kwargs):
3637
3638
- `matplotlib.scale.SymmetricalLogScale`
3638
3639
- `matplotlib.scale.LogitScale`
3639
3640
3640
-
3641
3641
Notes
3642
3642
-----
3643
3643
By default, Matplotlib supports the above mentioned scales.
@@ -3650,7 +3650,9 @@ def set_yscale(self, value, **kwargs):
3650
3650
ax .yaxis ._set_scale (value , ** kwargs )
3651
3651
ax ._update_transScale ()
3652
3652
ax .stale = True
3653
- self ._request_autoscale_view (scalex = False )
3653
+ # Force autoscaling now, to take advantage of the scale locator's
3654
+ # nonsingular() before it possibly gets swapped out by the user.
3655
+ self .autoscale_view (scalex = False )
3654
3656
3655
3657
@cbook ._make_keyword_only ("3.2" , "minor" )
3656
3658
def get_yticks (self , minor = False ):
0 commit comments