Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 477a055

Browse files
committed
improve docstrings of pyplot.xscale and pyplot.yscale
1 parent 5b7c0fe commit 477a055

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

lib/matplotlib/pyplot.py

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,13 +1599,22 @@ def ylim(*args, **kwargs):
15991599
@docstring.dedent_interpd
16001600
def xscale(*args, **kwargs):
16011601
"""
1602-
Set the scaling of the *x*-axis.
1602+
Set the scaling of the x-axis.
16031603
1604-
call signature::
1604+
Call signature::
16051605
1606-
xscale(scale, **kwargs)
1606+
xscale(scale, **kwargs)
1607+
1608+
Parameters
1609+
----------
1610+
scale : [%(scale)s]
1611+
The scaling type.
1612+
**kwargs
1613+
Additional parameters depend on *scale*. See Notes.
16071614
1608-
The available scales are: %(scale)s
1615+
Notes
1616+
-----
1617+
This is just a shortcut for calling `.Axes.set_xscale` on the current axes.
16091618
16101619
Different keywords may be accepted, depending on the scale:
16111620
@@ -1617,13 +1626,22 @@ def xscale(*args, **kwargs):
16171626
@docstring.dedent_interpd
16181627
def yscale(*args, **kwargs):
16191628
"""
1620-
Set the scaling of the *y*-axis.
1629+
Set the scaling of the y-axis.
16211630
1622-
call signature::
1631+
Call signature::
16231632
1624-
yscale(scale, **kwargs)
1633+
yscale(scale, **kwargs)
1634+
1635+
Parameters
1636+
----------
1637+
scale : [%(scale)s]
1638+
The scaling type.
1639+
**kwargs
1640+
Additional parameters depend on *scale*. See Notes.
16251641
1626-
The available scales are: %(scale)s
1642+
Notes
1643+
-----
1644+
This is just a shortcut for calling `.Axes.set_yscale` on the current axes.
16271645
16281646
Different keywords may be accepted, depending on the scale:
16291647

0 commit comments

Comments
 (0)