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

Skip to content

Commit 6f28a57

Browse files
committed
improve docstrings of pyplot.xscale and pyplot.yscale
1 parent 7ad7c62 commit 6f28a57

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

lib/matplotlib/pyplot.py

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,13 +1607,23 @@ def ylim(*args, **kwargs):
16071607
@docstring.dedent_interpd
16081608
def xscale(*args, **kwargs):
16091609
"""
1610-
Set the scaling of the *x*-axis.
1610+
Set the scaling of the x-axis.
16111611
1612-
call signature::
1612+
Call signature::
16131613
1614-
xscale(scale, **kwargs)
1614+
xscale(scale, **kwargs)
1615+
1616+
Parameters
1617+
----------
1618+
scale : [%(scale)s]
1619+
The scaling type.
1620+
**kwargs
1621+
Additional parameters depend on *scale*. See Notes.
16151622
1616-
The available scales are: %(scale)s
1623+
Notes
1624+
-----
1625+
This is the pyplot equivalent of calling `~.Axes.set_xscale` on the
1626+
current axes.
16171627
16181628
Different keywords may be accepted, depending on the scale:
16191629
@@ -1625,13 +1635,23 @@ def xscale(*args, **kwargs):
16251635
@docstring.dedent_interpd
16261636
def yscale(*args, **kwargs):
16271637
"""
1628-
Set the scaling of the *y*-axis.
1638+
Set the scaling of the y-axis.
16291639
1630-
call signature::
1640+
Call signature::
16311641
1632-
yscale(scale, **kwargs)
1642+
yscale(scale, **kwargs)
1643+
1644+
Parameters
1645+
----------
1646+
scale : [%(scale)s]
1647+
The scaling type.
1648+
**kwargs
1649+
Additional parameters depend on *scale*. See Notes.
16331650
1634-
The available scales are: %(scale)s
1651+
Notes
1652+
-----
1653+
This is the pyplot equivalent of calling `~.Axes.set_yscale` on the
1654+
current axes.
16351655
16361656
Different keywords may be accepted, depending on the scale:
16371657

0 commit comments

Comments
 (0)