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

Skip to content

Commit f4152ce

Browse files
NelleVQuLogic
authored andcommitted
Merge pull request #7031 from DoriekeMG/doc_semilogx
DOC Replaced documentation with numpydoc for semilogx
1 parent 9b2314f commit f4152ce

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,38 +1565,43 @@ def semilogx(self, *args, **kwargs):
15651565
"""
15661566
Make a plot with log scaling on the *x* axis.
15671567
1568-
Call signature::
1569-
1570-
semilogx(*args, **kwargs)
1571-
1572-
:func:`semilogx` supports all the keyword arguments of
1573-
:func:`~matplotlib.pyplot.plot` and
1574-
:meth:`matplotlib.axes.Axes.set_xscale`.
1575-
1576-
Notable keyword arguments:
1577-
1578-
*basex*: scalar > 1
1579-
Base of the *x* logarithm
1568+
Parameters
1569+
----------
1570+
basex : float, optional
1571+
Base of the *x* logarithm. The scalar should be larger
1572+
than 1.
15801573
1581-
*subsx*: [ *None* | sequence ]
1574+
subsx : array_like, optional
15821575
The location of the minor xticks; *None* defaults to
15831576
autosubs, which depend on the number of decades in the
15841577
plot; see :meth:`~matplotlib.axes.Axes.set_xscale` for
15851578
details.
15861579
1587-
*nonposx*: [ 'mask' | 'clip' ]
1580+
nonposx : string, optional, {'mask', 'clip'}
15881581
Non-positive values in *x* can be masked as
1589-
invalid, or clipped to a very small positive number
1582+
invalid, or clipped to a very small positive number.
15901583
1591-
The remaining valid kwargs are
1584+
Returns
1585+
-------
1586+
`~matplotlib.pyplot.plot`
1587+
Log-scaled plot on the *x* axis.
1588+
1589+
Other Parameters
1590+
----------------
15921591
:class:`~matplotlib.lines.Line2D` properties:
15931592
15941593
%(Line2D)s
15951594
1596-
.. seealso::
1595+
See Also
1596+
--------
1597+
loglog : For example code and figure.
1598+
1599+
Notes
1600+
-----
1601+
This function supports all the keyword arguments of
1602+
:func:`~matplotlib.pyplot.plot` and
1603+
:meth:`matplotlib.axes.Axes.set_xscale`.
15971604
1598-
:meth:`loglog`
1599-
For example code and figure
16001605
"""
16011606
if not self._hold:
16021607
self.cla()

0 commit comments

Comments
 (0)