Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
merged 2 commits into from
Sep 19, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Minor fixes to tick docstrings
  • Loading branch information
dstansby committed Sep 19, 2017
commit b4acccfde93442a7d883575c704d1185e3168aea
12 changes: 6 additions & 6 deletions 12 lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2995,8 +2995,8 @@ def set_xticks(self, ticks, minor=False):

Parameters
----------
ticks : sequence
Sequence of ticks
ticks : list
List of x-axis tick locations

minor : bool, optional
If ``False`` sets major ticks, if ``True`` sets minor ticks.
Copy link
Member

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'.

Copy link
Member

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.

Expand All @@ -3013,7 +3013,7 @@ def get_xmajorticklabels(self):
Returns
-------
labels : list
List of :class:`~matplotlib.text.Text` instancess
List of :class:`~matplotlib.text.Text` instances
"""
return cbook.silent_list('Text xticklabel',
self.xaxis.get_majorticklabels())
Expand Down Expand Up @@ -3317,7 +3317,7 @@ def set_yticks(self, ticks, minor=False):
Parameters
----------
ticks : sequence
Sequence of ticks
List of y-axis tick locations

minor : bool, optional
If ``False`` sets major ticks, if ``True`` sets minor ticks.
Expand All @@ -3333,7 +3333,7 @@ def get_ymajorticklabels(self):
Returns
-------
labels : list
List of :class:`~matplotlib.text.Text` instancess
List of :class:`~matplotlib.text.Text` instances
"""
return cbook.silent_list('Text yticklabel',
self.yaxis.get_majorticklabels())
Expand All @@ -3345,7 +3345,7 @@ def get_yminorticklabels(self):
Returns
-------
labels : list
List of :class:`~matplotlib.text.Text` instancess
List of :class:`~matplotlib.text.Text` instances
"""
return cbook.silent_list('Text yticklabel',
self.yaxis.get_minorticklabels())
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.