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 c05da63

Browse filesBrowse files
committed
improve docstrings of pyplot.xscale and pyplot.yscale
1 parent 377cdb1 commit c05da63
Copy full SHA for c05da63

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+28
-8
lines changed

‎lib/matplotlib/pyplot.py

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+28-8Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,13 +1602,23 @@ def ylim(*args, **kwargs):
16021602
@docstring.dedent_interpd
16031603
def xscale(*args, **kwargs):
16041604
"""
1605-
Set the scaling of the *x*-axis.
1605+
Set the scaling of the x-axis.
16061606
1607-
call signature::
1607+
Call signature::
16081608
1609-
xscale(scale, **kwargs)
1609+
xscale(scale, **kwargs)
1610+
1611+
Parameters
1612+
----------
1613+
scale : [%(scale)s]
1614+
The scaling type.
1615+
**kwargs
1616+
Additional parameters depend on *scale*. See Notes.
16101617
1611-
The available scales are: %(scale)s
1618+
Notes
1619+
-----
1620+
This is the pyplot equivalent of calling `~.Axes.set_xscale` on the
1621+
current axes.
16121622
16131623
Different keywords may be accepted, depending on the scale:
16141624
@@ -1620,13 +1630,23 @@ def xscale(*args, **kwargs):
16201630
@docstring.dedent_interpd
16211631
def yscale(*args, **kwargs):
16221632
"""
1623-
Set the scaling of the *y*-axis.
1633+
Set the scaling of the y-axis.
16241634
1625-
call signature::
1635+
Call signature::
16261636
1627-
yscale(scale, **kwargs)
1637+
yscale(scale, **kwargs)
1638+
1639+
Parameters
1640+
----------
1641+
scale : [%(scale)s]
1642+
The scaling type.
1643+
**kwargs
1644+
Additional parameters depend on *scale*. See Notes.
16281645
1629-
The available scales are: %(scale)s
1646+
Notes
1647+
-----
1648+
This is the pyplot equivalent of calling `~.Axes.set_yscale` on the
1649+
current axes.
16301650
16311651
Different keywords may be accepted, depending on the scale:
16321652

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.