Skip to content

Commit

Permalink
Merge pull request #4931 from ericmjl/mep12-loadrec.py
Browse files Browse the repository at this point in the history
MEP12 on loadrec.py
  • Loading branch information
jenshnielsen committed Aug 16, 2015
2 parents 09f2577 + e41161b commit 6ea8bc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/pylab_examples/loadrec.py
@@ -1,6 +1,6 @@
from __future__ import print_function
from matplotlib import mlab
from pylab import figure, show
import matplotlib.pyplot as plt
import matplotlib.cbook as cbook

datafile = cbook.get_sample_data('msft.csv', asfileobj=False)
Expand All @@ -9,7 +9,7 @@
a.sort()
print(a.dtype)

fig = figure()
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(a.date, a.adj_close, '-')
fig.autofmt_xdate()
Expand All @@ -20,4 +20,4 @@
exceltools.rec2excel(a, 'test.xls')
except ImportError:
pass
show()
plt.show()

0 comments on commit 6ea8bc3

Please sign in to comment.