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

Skip to content

Commit 4d80e7f

Browse files
DoriMGYour Name
authored andcommitted
DOC Replaced documentation with numpydoc for semilogx
1 parent 5f553bc commit 4d80e7f

1 file changed

Lines changed: 28 additions & 24 deletions

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,39 +1544,43 @@ def loglog(self, *args, **kwargs):
15441544
def semilogx(self, *args, **kwargs):
15451545
"""
15461546
Make a plot with log scaling on the *x* axis.
1547-
1548-
Call signature::
1549-
1550-
semilogx(*args, **kwargs)
1551-
1552-
:func:`semilogx` supports all the keyword arguments of
1553-
:func:`~matplotlib.pyplot.plot` and
1554-
:meth:`matplotlib.axes.Axes.set_xscale`.
1555-
1556-
Notable keyword arguments:
1557-
1558-
*basex*: scalar > 1
1559-
Base of the *x* logarithm
1560-
1561-
*subsx*: [ *None* | sequence ]
1562-
The location of the minor xticks; *None* defaults to
1547+
1548+
Parameters
1549+
----------
1550+
basex : float, optional
1551+
Base of the *x* logarithm.
1552+
1553+
subsx : array_like, optional
1554+
The location of the minor xticks; *None* defaults to
15631555
autosubs, which depend on the number of decades in the
15641556
plot; see :meth:`~matplotlib.axes.Axes.set_xscale` for
15651557
details.
15661558
1567-
*nonposx*: [ 'mask' | 'clip' ]
1568-
Non-positive values in *x* can be masked as
1569-
invalid, or clipped to a very small positive number
1559+
nonposx : string, optional, {'mask', 'clip'}
1560+
Non-positive values in *x* can be masked as
1561+
invalid, or clipped to a very small positive number.
15701562
1571-
The remaining valid kwargs are
1563+
Returns
1564+
-------
1565+
`~matplotlib.pyplot.plot`
1566+
Log-scaled plot on the *x* axis.
1567+
1568+
Other Parameters
1569+
----------------
15721570
:class:`~matplotlib.lines.Line2D` properties:
15731571
15741572
%(Line2D)s
1573+
1574+
See Also
1575+
--------
1576+
loglog : For example code and figure.
1577+
1578+
Notes
1579+
-----
1580+
*This function supports all the keyword arguments of
1581+
:func:`~matplotlib.pyplot.plot` and
1582+
:meth:`matplotlib.axes.Axes.set_xscale`.
15751583
1576-
.. seealso::
1577-
1578-
:meth:`loglog`
1579-
For example code and figure
15801584
"""
15811585
if not self._hold:
15821586
self.cla()

0 commit comments

Comments
 (0)