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

Skip to content

Commit 9ce996d

Browse files
committed
svn path=/trunk/matplotlib/; revision=3399
1 parent 88b24e3 commit 9ce996d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _to_ordinalf(dt):
135135
if delta is not None:
136136
dt -= delta
137137

138-
base = dt.toordinal()
138+
base = float(dt.toordinal())
139139
if hasattr(dt, 'hour'):
140140
base += (dt.hour/HOURS_PER_DAY + dt.minute/MINUTES_PER_DAY +
141141
dt.second/SECONDS_PER_DAY + dt.microsecond/MUSECONDS_PER_DAY

0 commit comments

Comments
 (0)