diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 0cba4d225e36..8b010e8ea314 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -1595,41 +1595,40 @@ def semilogx(self, *args, **kwargs): # @_preprocess_data() # let 'plot' do the unpacking.. @docstring.dedent_interpd def semilogy(self, *args, **kwargs): - """ - Make a plot with log scaling on the *y* axis. - - call signature:: - - semilogy(*args, **kwargs) + r"""Make a plot with log scaling on the `y` axis. - :func:`semilogy` supports all the keyword arguments of - :func:`~matplotlib.pylab.plot` and - :meth:`matplotlib.axes.Axes.set_yscale`. - - Notable keyword arguments: - - *basey*: scalar > 1 - Base of the *y* logarithm + Parameters + ---------- + basey : scalar > 1 + Base of the `y` logarithm. - *subsy*: [ *None* | sequence ] - The location of the minor yticks; *None* defaults to + subsy : None or iterable + The location of the minor yticks. None defaults to autosubs, which depend on the number of decades in the - plot; see :meth:`~matplotlib.axes.Axes.set_yscale` for + plot. See :meth:`~matplotlib.axes.Axes.set_yscale` for details. - *nonposy*: [ 'mask' | 'clip' ] - Non-positive values in *y* can be masked as - invalid, or clipped to a very small positive number + nonposy : {'mask' | 'clip'} str + Non-positive values in `y` can be masked as + invalid, or clipped to a very small positive number. - The remaining valid kwargs are - :class:`~matplotlib.lines.Line2D` properties: + Returns + ------- + `~matplotlib.lines.Line2D` + Line instance of the plot. + + Other Parameters + ---------------- + kwargs : `~matplotlib.lines.Line2D` properties, + `~matplotlib.pylab.plot` and + `matplotlib.axes.Axes.set_yscale` arguments. %(Line2D)s - .. seealso:: + See also + -------- + :meth:`loglog`: For example code and figure. - :meth:`loglog` - For example code and figure """ if not self._hold: self.cla()