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

Skip to content

Commit 6dd8ef9

Browse files
committed
Update docstring and add num2timedelta to __all__
1 parent b8c2abf commit 6dd8ef9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/dates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
import matplotlib.ticker as ticker
137137

138138

139-
__all__ = ('date2num', 'num2date', 'drange', 'epoch2num',
139+
__all__ = ('date2num', 'num2date', 'num2timedelta', 'drange', 'epoch2num',
140140
'num2epoch', 'mx2num', 'DateFormatter',
141141
'IndexDateFormatter', 'AutoDateFormatter', 'DateLocator',
142142
'RRuleLocator', 'AutoDateLocator', 'YearLocator',
@@ -426,7 +426,7 @@ def num2timedelta(x):
426426
427427
Returns
428428
-------
429-
:class:`timedelta`
429+
:class:`timedelta` or list[:class:`timedelta`]
430430
431431
"""
432432
if not cbook.iterable(x):

0 commit comments

Comments
 (0)