8000 Update doc strings by ImportanceOfBeingErnest · Pull Request #9279 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Update doc strings #9279

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 5 commits into from
Oct 9, 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
Next Next commit
Update doc strings
Added SecondLocator and MicrosecondLocator to the list of possible Locators. 
Added a sentence for DateLocator saying that it is not meant to be used on its own.
  • Loading branch information
ImportanceOfBeingErnest authored Oct 4, 2017
commit a278dc2efe89dc138fa3b55668077806ced664a6
6 changes: 5 additions & 1 deletion lib/matplotlib/dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@

Here are all the date tickers:

* :class:`MicrosecondLocator`: locate microseconds

* :class:`SecondLocator`: locate seconds

* :class:`MinuteLocator`: locate minutes

* :class:`HourLocator`: locate hours
Expand Down Expand Up @@ -793,7 +797,7 @@ def __setstate__(self, state):

class DateLocator(ticker.Locator):
"""
Determines the tick locations when plotting dates.
Determines the tick locations when plotting dates. This class is subclassed by other Locators and is not meant to be used on its own.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put the second line by itself. (See first sentence of https://www.python.org/dev/peps/pep-0257/#multi-line-docstrings).

"""
hms0d = {'byhour': 0, 'byminute': 0, 'bysecond': 0}

Expand Dow 38FC n
0