Skip to content

Commit be0fc48

Browse files
committed
port more examples over to sample data
svn path=/trunk/matplotlib/; revision=7380
1 parent db2124d commit be0fc48

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

examples/api/date_index_formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import matplotlib.cbook as cbook
1010
import matplotlib.ticker as ticker
1111

12-
datafile = cbook.get_sample_data('aapl.csv', asobj=False)
12+
datafile = cbook.get_sample_data('aapl.csv', asfileobj=False)
1313
print 'loading', datafile
1414
r = mlab.csv2rec(datafile)
1515

examples/misc/rec_groupby_demo.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
import matplotlib.mlab as mlab
33
import matplotlib.cbook as cbook
44

5-
datafile = cbook.get_sample_data('aapl.csv', asobj=False)
5+
datafile = cbook.get_sample_data('aapl.csv', asfileobj=False)
66
print 'loading', datafile
77
r = mlab.csv2rec(datafile)
8-
9-
r = mlab.csv2rec('../data/aapl.csv')
108
r.sort()
119

1210
def daily_return(prices):

examples/misc/rec_join_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import matplotlib.mlab as mlab
33
import matplotlib.cbook as cbook
44

5-
datafile = cbook.get_sample_data('aapl.csv', asobj=False)
5+
datafile = cbook.get_sample_data('aapl.csv', asfileobj=False)
66
print 'loading', datafile
77
r = mlab.csv2rec(datafile)
88

0 commit comments

Comments
 (0)