| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
|
||
| Matplotlib has supported `datetime.datetime` dates for a long time. We | ||
| now support `numpy.datetime64` dates as well. This should be | ||
| transparent to the user, and anywhere that `dateime.datetime` could be |
There was a problem hiding this comment.
I think "this should be transparent to the user" falls into the "this is simple/obvious/easy" ableist type language that I think should be avoided when possible.
Sorry, something went wrong.
There was a problem hiding this comment.
I just meant they shouldn't have to do anything special to make it happen. i.e. there is no new API, they just use plot or date2num as they always have.
Sorry, something went wrong.
There was a problem hiding this comment.
I think it might be clearer to say that? np.datetime is now a supported type, so np.datetime objects can now be used as data inputs to any plotting function that already supports dates.
Sorry, something went wrong.
| and num2date | ||
|
|
||
| All matplotlib date plotting is done by converting date instances into days | ||
| since 0001-01-01 00:00:00 UTC plus one day (for historical reasons). The |
There was a problem hiding this comment.
What historical reasons? Is there a link to the discussion anywhere?
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
There was a problem hiding this comment.
Awesome. can you link to that discussion in this text to provide context.
Sorry, something went wrong.
|
This is OK. Couldn't get inter sphinx numpy.datetime64 to give a link. Any idea what I'm doing wrong? |
Sorry, something went wrong.
|
Maybe try :numpy:class:`datetime64` ? |
Sorry, something went wrong.
|
That doesn't appear anywhere else in the codebase. Others have use numpy.datetime64 elsewhere in the docs, so I'll leave as that and open an issue about the intersphinx issue... EDIT: I'll try again w/ :class:numpy.datetime64 |
Sorry, something went wrong.
|
That doesn't work either. Opened issue... #9802 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
Should have been in #9779. Sorry!
PR Checklist