10000 Merge pull request #14613 from anntzer/dateformatterdoc · matplotlib/matplotlib@4750734 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4750734

Browse files
authored
Merge pull request #14613 from anntzer/dateformatterdoc
Cleanup DateFormatter docstring.
2 parents d4565f4 + 625a8e8 commit 4750734

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
@@ -589,21 +589,18 @@ def drange(dstart, dend, delta):
589589

590590
class DateFormatter(ticker.Formatter):
591591
"""
592-
Tick location is seconds since the epoch. Use a :func:`strftime`
593-
format string.
594-
595-
Python only supports :mod:`datetime` :func:`strftime` formatting
596-
for years greater than 1900. Thanks to Andrew Dalke, Dalke
597-
Scientific Software who contributed the :func:`strftime` code
598-
below to include dates earlier than this year.
592+
Format a tick (in seconds since the epoch) with a `strftime` format string.
599593
"""
600594

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

603597
def __init__(self, fmt, tz=None):
604598
"""
605-
*fmt* is a :func:`strftime` format string; *tz* is the
606-
:class:`tzinfo` instance.
599+
Parameters
600+
----------
601+
fmt : str
602+
`strftime` format string
603+
tz : `tzinfo`
607604
"""
608605
if tz is None:
609606
tz = _get_rc_timezone()

0 commit comments

Comments
 (0)
0