Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e5ddc commit f04849aCopy full SHA for f04849a
1 file changed
lib/matplotlib/dates.py
@@ -425,8 +425,8 @@ def date2num(d):
425
tzi = getattr(d[0], 'tzinfo', None)
426
if tzi is not None:
427
# make datetime naive:
428
- d = [dt.astimezone(UTC) for dt in d]
429
- d = np.asarray([dt.replace(tzinfo=None) for dt in d])
+ d = [dt.astimezone(UTC).replace(tzinfo=None) for dt in d]
+ d = np.asarray(d)
430
d = d.astype('datetime64[us]')
431
432
d = _dt64_to_ordinalf(d)
0 commit comments