@@ -3248,9 +3248,14 @@ def set_xlim(self, left=None, right=None, emit=True, auto=False,
3248
3248
return left , right
3249
3249
3250
3250
def get_xscale (self ):
3251
+ """
3252
+ Return the x-axis scale as string.
3253
+
3254
+ See Also
3255
+ --------
3256
+ set_xscale
3257
+ """
3251
3258
return self .xaxis .get_scale ()
3252
- get_xscale .__doc__ = "Return the xaxis scale string: %s" "" % (
3253
- ", " .join (mscale .get_scale_names ()))
3254
3259
3255
3260
def set_xscale (self , value , ** kwargs ):
3256
3261
"""
@@ -3259,22 +3264,24 @@ def set_xscale(self, value, **kwargs):
3259
3264
Parameters
3260
3265
----------
3261
3266
value : {"linear", "log", "symlog", "logit", ...}
3262
- scaling strategy to apply
3267
+ The axis scale type to apply.
3263
3268
3264
- Notes
3265
- -----
3266
- Different kwargs are accepted, depending on the scale. See
3267
- the `~matplotlib.scale` module for more information.
3268
-
3269
- See also
3270
- --------
3271
- matplotlib.scale.LinearScale : linear transform
3269
+ **kwargs
3270
+ Different keyword arguments are accepted, depending on the scale.
3271
+ See the respective class keyword arguments:
3272
3272
3273
- matplotlib.scale.LogTransform : log transform
3273
+ - `matplotlib.scale.LinearScale`
3274
+ - `matplotlib.scale.LogScale`
3275
+ - `matplotlib.scale.SymmetricalLogScale`
3276
+ - `matplotlib.scale.LogitScale`
3274
3277
3275
- matplotlib.scale.SymmetricalLogTransform : symlog transform
3276
3278
3277
- matplotlib.scale.LogisticTransform : logit transform
3279
+ Notes
3280
+ -----
3281
+ By default, Matplotlib supports the above mentioned scales.
3282
+ Additionally, custom scales may be registered using
3283
+ `matplotlib.scale.register_scale`. These scales can then also
3284
+ be used here.
3278
3285
"""
3279
3286
g = self .get_shared_x_axes ()
3280
3287
for ax in g .get_siblings (self ):
@@ -3630,9 +3637,14 @@ def set_ylim(self, bottom=None, top=None, emit=True, auto=False,
3630
3637
return bottom , top
3631
3638
3632
3639
def get_yscale (self ):
3640
+ """
3641
+ Return the x-axis scale as string.
3642
+
3643
+ See Also
3644
+ --------
3645
+ set_yscale
3646
+ """
3633
3647
return self .yaxis .get_scale ()
3634
- get_yscale .__doc__ = "Return the yaxis scale string: %s" "" % (
3635
- ", " .join (mscale .get_scale_names ()))
3636
3648
3637
3649
def set_yscale (self , value , ** kwargs ):
3638
3650
"""
@@ -3641,22 +3653,24 @@ def set_yscale(self, value, **kwargs):
3641
3653
Parameters
3642
3654
----------
3643
3655
value : {"linear", "log", "symlog", "logit", ...}
3644
- scaling strategy to apply
3656
+ The axis scale type to apply.
3645
3657
3646
- Notes
3647
- -----
3648
- Different kwargs are accepted, depending on the scale. See
3649
- the `~matplotlib.scale` module for more information.
3650
-
3651
- See also
3652
- --------
3653
- matplotlib.scale.LinearScale : linear transform
3658
+ **kwargs
3659
+ Different keyword arguments are accepted, depending on the scale.
3660
+ See the respective class keyword arguments:
3654
3661
3655
- matplotlib.scale.LogTransform : log transform
3662
+ - `matplotlib.scale.LinearScale`
3663
+ - `matplotlib.scale.LogScale`
3664
+ - `matplotlib.scale.SymmetricalLogScale`
3665
+ - `matplotlib.scale.LogitScale`
3656
3666
3657
- matplotlib.scale.SymmetricalLogTransform : symlog transform
3658
3667
3659
- matplotlib.scale.LogisticTransform : logit transform
3668
+ Notes
3669
+ -----
3670
+ By default, Matplotlib supports the above mentioned scales.
3671
+ Additionally, custom scales may be registered using
3672
+ `matplotlib.scale.register_scale`. These scales can then also
3673
+ be used here.
3660
3674
"""
3661
3675
g = self .get_shared_y_axes ()
3662
3676
for ax in g .get_siblings (self ):
0 commit comments