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

Skip to content

DOC Replaced documentation with numpydoc for semilogx #7031

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from Sep 27, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 24 additions & 19 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1545,38 +1545,43 @@ def semilogx(self, *args, **kwargs):
"""
Make a plot with log scaling on the *x* axis.

Call signature::

semilogx(*args, **kwargs)

:func:`semilogx` supports all the keyword arguments of
:func:`~matplotlib.pyplot.plot` and
:meth:`matplotlib.axes.Axes.set_xscale`.

Notable keyword arguments:

*basex*: scalar > 1
Base of the *x* logarithm
Parameters
----------
basex : float, optional
Base of the *x* logarithm. The scalar should be larger
than 1.

*subsx*: [ *None* | sequence ]
subsx : array_like, optional
The location of the minor xticks; *None* defaults to
autosubs, which depend on the number of decades in the
plot; see :meth:`~matplotlib.axes.Axes.set_xscale` for
details.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition should be noted in the new text.


*nonposx*: [ 'mask' | 'clip' ]
nonposx : string, optional, {'mask', 'clip'}
Non-positive values in *x* can be masked as
invalid, or clipped to a very small positive number
invalid, or clipped to a very small positive number.

The remaining valid kwargs are
Returns
-------
`~matplotlib.pyplot.plot`
Log-scaled plot on the *x* axis.

Other Parameters
----------------
:class:`~matplotlib.lines.Line2D` properties:

%(Line2D)s
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line2D will need to be updated in order for this interpolation to work correctly.


.. seealso::
See Also
--------
loglog : For example code and figure.

Notes
-----
This function supports all the keyword arguments of
:func:`~matplotlib.pyplot.plot` and
:meth:`matplotlib.axes.Axes.set_xscale`.

:meth:`loglog`
For example code and figure
"""
if not self._hold:
self.cla()
Expand Down