|
From: <ef...@us...> - 2011-01-04 20:52:48
|
Revision: 8884
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8884&view=rev
Author: efiring
Date: 2011-01-04 20:52:42 +0000 (Tue, 04 Jan 2011)
Log Message:
-----------
Finance: change volume to float; close 3108059
Modified Paths:
--------------
branches/v1_0_maint/lib/matplotlib/finance.py
Modified: branches/v1_0_maint/lib/matplotlib/finance.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/finance.py 2011-01-04 20:36:21 UTC (rev 8883)
+++ branches/v1_0_maint/lib/matplotlib/finance.py 2011-01-04 20:52:42 UTC (rev 8884)
@@ -38,7 +38,7 @@
('close', np.float),
('high', np.float),
('low', np.float),
- ('volume', np.int),
+ ('volume', np.float),
('aclose', np.float)])
@@ -57,7 +57,7 @@
by the adjusted close, regardless of whether you choose adjusted
= True|False.
-
+
*asobject*
If False (default for compatibility with earlier versions)
return a list of tuples containing
@@ -101,7 +101,7 @@
dt = datetime.date(*[int(val) for val in datestr.split('-')])
dnum = date2num(dt)
open, high, low, close = [float(val) for val in vals[1:5]]
- volume = int(vals[5])
+ volume = float(vals[5])
aclose = float(vals[6])
results.append((dt, dt.year, dt.month, dt.day,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|