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

Skip to content

Commit c229bd5

Browse files
authored
Merge pull request #10152 from jklymak/doc-update-datetime64-howto
DOC: update the datetime64 HowTo
2 parents 8acb14f + 0b529af commit c229bd5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/faq/howto_faq.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ Plotting: howto
1919
Plot `numpy.datetime64` values
2020
------------------------------
2121

22-
For Matplotlib to plot dates (or any scalar with units) a converter
23-
to float needs to be registered with the `matplolib.units` module. The
24-
current best converters for `datetime64` values are in `pandas`. To enable the
25-
converter, import it from pandas::
22+
As of Matplotlib 2.2, `numpy.datetime64` objects are handled the same way
23+
as `datetime.datetime` objects.
24+
25+
If you prefer the pandas converters and locators, you can register their
26+
converter with the `matplolib.units` module::
2627

2728
from pandas.tseries import converter as pdtc
2829
pdtc.register()

0 commit comments

Comments
 (0)