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

Skip to content

Commit cf5db83

Browse files
authored
Merge pull request #22610 from timhoffm/epoch2num
DOC: Fix alternative suggestion in epoch2num() deprecation
2 parents e75b529 + 14751d7 commit cf5db83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/dates.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,8 @@ def _get_interval(self):
17371737

17381738
@_api.deprecated(
17391739
"3.5",
1740-
alternative="`date2num(datetime.utcfromtimestamp(e))<.date2num>`")
1740+
alternative="``[date2num(datetime.utcfromtimestamp(t)) for t in e]`` or "
1741+
"numpy.datetime64 types")
17411742
def epoch2num(e):
17421743
"""
17431744
Convert UNIX time to days since Matplotlib epoch.

0 commit comments

Comments
 (0)