-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Convert tick-setting methods to docstrings #9192
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/_base.py
Outdated
Sequence of ticks | ||
|
||
minor : bool, optional | ||
If ``False`` sets major ticks, if ``True`` sets minor ticks. |
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 think this can also take the string 'both'
.
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.
on second thought, that makes not much sense for this set_
method.
lib/matplotlib/axes/_base.py
Outdated
Returns | ||
------- | ||
labels : list | ||
List of :class:`~matplotlib.text.Text` instancess |
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.
"instacesssss"
lib/matplotlib/axes/_base.py
Outdated
Parameters | ||
---------- | ||
ticks : sequence | ||
Sequence of ticks |
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 would just say list... and list of floats (I guess?), as it's not a list of Tick objects (unless I got this completely wrong).
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.
Could be a list of datetimes if it's a date 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.
Possibly, no idea.
But "ticks" without further qualification definitely sounds like "Tick objects" to me.
35a2722
to
b4acccf
Compare
Convert tick-setting methods to docstrings
Backported to |
No description provided.