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 14751d7

Browse filesBrowse files
committed
Fix alternative suggestion in epoch2num() deprecation
Closes #22579.
1 parent fbfcacc commit 14751d7
Copy full SHA for 14751d7

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎lib/matplotlib/dates.py

Copy file name to clipboardExpand all lines: lib/matplotlib/dates.py
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.