Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdf56b3

Browse files
dstansbyMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #14613: Cleanup DateFormatter docstring.
1 parent cdf9e30 commit cdf56b3

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

lib/matplotlib/dates.py

Lines 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)