From: <jd...@us...> - 2009-08-05 15:59:34
|
Revision: 7380 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7380&view=rev Author: jdh2358 Date: 2009-08-05 15:59:24 +0000 (Wed, 05 Aug 2009) Log Message: ----------- port more examples over to sample data Modified Paths: -------------- trunk/matplotlib/examples/api/date_index_formatter.py trunk/matplotlib/examples/misc/rec_groupby_demo.py trunk/matplotlib/examples/misc/rec_join_demo.py Modified: trunk/matplotlib/examples/api/date_index_formatter.py =================================================================== --- trunk/matplotlib/examples/api/date_index_formatter.py 2009-08-05 15:57:31 UTC (rev 7379) +++ trunk/matplotlib/examples/api/date_index_formatter.py 2009-08-05 15:59:24 UTC (rev 7380) @@ -9,7 +9,7 @@ import matplotlib.cbook as cbook import matplotlib.ticker as ticker -datafile = cbook.get_sample_data('aapl.csv', asobj=False) +datafile = cbook.get_sample_data('aapl.csv', asfileobj=False) print 'loading', datafile r = mlab.csv2rec(datafile) Modified: trunk/matplotlib/examples/misc/rec_groupby_demo.py =================================================================== --- trunk/matplotlib/examples/misc/rec_groupby_demo.py 2009-08-05 15:57:31 UTC (rev 7379) +++ trunk/matplotlib/examples/misc/rec_groupby_demo.py 2009-08-05 15:59:24 UTC (rev 7380) @@ -2,11 +2,9 @@ import matplotlib.mlab as mlab import matplotlib.cbook as cbook -datafile = cbook.get_sample_data('aapl.csv', asobj=False) +datafile = cbook.get_sample_data('aapl.csv', asfileobj=False) print 'loading', datafile r = mlab.csv2rec(datafile) - -r = mlab.csv2rec('../data/aapl.csv') r.sort() def daily_return(prices): Modified: trunk/matplotlib/examples/misc/rec_join_demo.py =================================================================== --- trunk/matplotlib/examples/misc/rec_join_demo.py 2009-08-05 15:57:31 UTC (rev 7379) +++ trunk/matplotlib/examples/misc/rec_join_demo.py 2009-08-05 15:59:24 UTC (rev 7380) @@ -2,7 +2,7 @@ import matplotlib.mlab as mlab import matplotlib.cbook as cbook -datafile = cbook.get_sample_data('aapl.csv', asobj=False) +datafile = cbook.get_sample_data('aapl.csv', asfileobj=False) print 'loading', datafile r = mlab.csv2rec(datafile) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |