@@ -3270,9 +3270,14 @@ def set_xlim(self, left=None, right=None, emit=True, auto=False,
3270
3270
return left , right
3271
3271
3272
3272
def get_xscale (self ):
3273
+ """
3274
+ Return the x-axis scale as string.
3275
+
3276
+ See Also
3277
+ --------
3278
+ set_xscale
3279
+ """
3273
3280
return self .xaxis .get_scale ()
3274
- get_xscale .__doc__ = "Return the xaxis scale string: %s" "" % (
3275
- ", " .join (mscale .get_scale_names ()))
3276
3281
3277
3282
def set_xscale (self , value , ** kwargs ):
3278
3283
"""
@@ -3281,22 +3286,24 @@ def set_xscale(self, value, **kwargs):
3281
3286
Parameters
3282
3287
----------
3283
3288
value : {"linear", "log", "symlog", "logit", ...}
3284
- scaling strategy to apply
3289
+ The axis scale type to apply.
3285
3290
3286
- Notes
3287
- -----
3288
- Different kwargs are accepted, depending on the scale. See
3289
- the `~matplotlib.scale` module for more information.
3290
-
3291
- See also
3292
- --------
3293
- matplotlib.scale.LinearScale : linear transform
3291
+ **kwargs
3292
+ Different keyword arguments are accepted, depending on the scale.
3293
+ See the respective class keyword arguments:
3294
3294
3295
- matplotlib.scale.LogTransform : log transform
3295
+ - `matplotlib.scale.LinearScale`
3296
+ - `matplotlib.scale.LogScale`
3297
+ - `matplotlib.scale.SymmetricalLogScale`
3298
+ - `matplotlib.scale.LogitScale`
3296
3299
3297
- matplotlib.scale.SymmetricalLogTransform : symlog transform
3298
3300
3299
- matplotlib.scale.LogisticTransform : logit transform
3301
+ Notes
3302
+ -----
3303
+ By default, Matplotlib supports the above mentioned scales.
3304
+ Additionally, custom scales may be registered using
3305
+ `matplotlib.scale.register_scale`. These scales can then also
3306
+ be used here.
3300
3307
"""
3301
3308
g = self .get_shared_x_axes ()
3302
3309
for ax in g .get_siblings (self ):
@@ -3653,9 +3660,14 @@ def set_ylim(self, bottom=None, top=None, emit=True, auto=False,
3653
3660
return bottom , top
3654
3661
3655
3662
def get_yscale (self ):
3663
+ """
3664
+ Return the x-axis scale as string.
3665
+
3666
+ See Also
3667
+ --------
3668
+ set_yscale
3669
+ """
3656
3670
return self .yaxis .get_scale ()
3657
- get_yscale .__doc__ = "Return the yaxis scale string: %s" "" % (
3658
- ", " .join (mscale .get_scale_names ()))
3659
3671
3660
3672
def set_yscale (self , value , ** kwargs ):
3661
3673
"""
@@ -3664,22 +3676,24 @@ def set_yscale(self, value, **kwargs):
3664
3676
Parameters
3665
3677
----------
3666
3678
value : {"linear", "log", "symlog", "logit", ...}
3667
- scaling strategy to apply
3679
+ The axis scale type to apply.
3668
3680
3669
- Notes
3670
- -----
3671
- Different kwargs are accepted, depending on the scale. See
3672
- the `~matplotlib.scale` module for more information.
3673
-
3674
- See also
3675
- --------
3676
- matplotlib.scale.LinearScale : linear transform
3681
+ **kwargs
3682
+ Different keyword arguments are accepted, depending on the scale.
3683
+ See the respective class keyword arguments:
3677
3684
3678
- matplotlib.scale.LogTransform : log transform
3685
+ - `matplotlib.scale.LinearScale`
3686
+ - `matplotlib.scale.LogScale`
3687
+ - `matplotlib.scale.SymmetricalLogScale`
3688
+ - `matplotlib.scale.LogitScale`
3679
3689
3680
- matplotlib.scale.SymmetricalLogTransform : symlog transform
3681
3690
3682
- matplotlib.scale.LogisticTransform : logit transform
3691
+ Notes
3692
+ -----
3693
+ By default, Matplotlib supports the above mentioned scales.
3694
+ Additionally, custom scales may be registered using
3695
+ `matplotlib.scale.register_scale`. These scales can then also
3696
+ be used here.
3683
3697
"""
3684
3698
g = self .get_shared_y_axes ()
3685
3699
for ax in g .get_siblings (self ):
0 commit comments