-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOC Update semilogy docstring to numpy doc format #7035
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
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
.. seealso:: | ||
See also | ||
-------- | ||
:meth:`loglog`: For example code and figure. | ||
|
||
:meth:`loglog` | ||
For example code and figure | ||
""" | ||
if not self._hold: | ||
self.cla() | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not
kwargs
; it's**kwargs
(which should be documented as\*\*kwargs
or enclosed in double-backticks (which I can't figure out how to use on GitHub without triggering the code styling.))