-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix documents of semilogx and semilogy. #9268
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
Conversation
lib/matplotlib/axes/_axes.py
Outdated
**kwargs : | ||
Keyword arguments control the :class:`~matplotlib.lines.Line2D` | ||
properties: | ||
**kwargs : Keyword arguments control the :class:`~matplotlib.lines.Line2D` properties: |
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.
Please keep the description on its own line (only type information should really be on the same line).
@@ -1631,7 +1629,8 @@ def semilogx(self, *args, **kwargs): | ||
# @_preprocess_data() # let 'plot' do the unpacking.. | ||
@docstring.dedent_interpd | ||
def semilogy(self, *args, **kwargs): | ||
r"""Make a plot with log scaling on the `y` axis. | ||
""" |
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.
Although not crucial, it would be nice to take advantage of this opportunity to fix the docstring of semilogy to exactly match the one of semilogx, save for x/y. Right now there are a number of discrepancies.
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.
I have already fixed the docstring of semilogy to match the one of semilogx.
9de5a19
to
8a8ceaf
Compare
... did you undo most of your work? |
No, I didn't undo most of my work, I just updated semilogy to make it match semilogx. |
Sorry, I misunderstood you. I also changed the Parameter part of semilogy this time to exactly match semilogx. |
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.
👍 thanks for the fix!
Backport PR #9268 on branch v2.1.x
@skx19952 I think this was your first MPL PR? Congratulations 🎉 Hopefully we will hear from you again. |
PR Checklist