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

Commit cdf56b3

Browse filesBrowse files
dstansbyMeeseeksDev[bot]
authored andcommitted
Backport PR matplotlib#14613: Cleanup DateFormatter docstring.
1 parent cdf9e30 commit cdf56b3
Copy full SHA for cdf56b3

File tree

Expand file treeCollapse file tree

1 file changed

+6
-9
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-9
lines changed

‎lib/matplotlib/dates.py

Copy file name to clipboardExpand all lines: lib/matplotlib/dates.py
+6-9Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -578,21 +578,18 @@ def drange(dstart, dend, delta):
578578

579579
class DateFormatter(ticker.Formatter):
580580
"""
581-
Tick location is seconds since the epoch. Use a :func:`strftime`
582-
format string.
583-
584-
Python only supports :mod:`datetime` :func:`strftime` formatting
585-
for years greater than 1900. Thanks to Andrew Dalke, Dalke
586-
Scientific Software who contributed the :func:`strftime` code
587-
below to include dates earlier than this year.
581+
Format a tick (in seconds since the epoch) with a `strftime` format string.
588582
"""
589583

590584
illegal_s = re.compile(r"((^|[^%])(%%)*%s)")
591585

592586
def __init__(self, fmt, tz=None):
593587
"""
594-
*fmt* is a :func:`strftime` format string; *tz* is the
595-
:class:`tzinfo` instance.
588+
Parameters
589+
----------
590+
fmt : str
591+
`strftime` format string
592+
tz : `tzinfo`
596593
"""
597594
if tz is None:
598595
tz = _get_rc_timezone()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.