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

Skip to content

Commit d16b1dd

Browse files
jklymakQuLogic
andauthored
Apply suggestions from code review
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent f4c125d commit d16b1dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/matplotlib/dates.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@
22
Matplotlib provides sophisticated date plotting capabilities, standing on the
33
shoulders of python :mod:`datetime` and the add-on module :mod:`dateutil`.
44
5-
By default, Matpltolib uses the units machinery described in
6-
`~.matplotlib.units` to convert `datetime.datetime`, and `numpy.datetime64`
5+
By default, Matplotlib uses the units machinery described in
6+
`~matplotlib.units` to convert `datetime.datetime`, and `numpy.datetime64`
77
objects when plotted on an x- or y-axis. The user does not
88
need to do anything for dates to be formatted, but dates often have strict
99
formatting needs, so this module provides many axis locators and formatters.
1010
A basic example using `numpy.datetime64` is::
1111
1212
import numpy as np
13-
fig, ax = plt.subplots()
13+
1414
times = np.arange(np.datetime64('2001-01-02'),
1515
np.datetime64('2002-02-03'), np.timedelta64(75, 'm'))
1616
y = np.random.randn(len(times))
17+
18+
fig, ax = plt.subplots()
1719
ax.plot(times, y)
1820
1921
.. seealso::

0 commit comments

Comments
 (0)