diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 0cba4d225e36..da0bec3deed4 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -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. - *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 - .. 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()