Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 93118f9

Browse filesBrowse files
committed
improve docstrings of pyplot.xscale and pyplot.yscale
1 parent 7cb314d commit 93118f9
Copy full SHA for 93118f9

File tree

Expand file treeCollapse file tree

1 file changed

+26
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+26
-8
lines changed

‎lib/matplotlib/pyplot.py

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+26-8Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.