10BC0 MEP12 on loadrec.py by ericmjl · Pull Request #4931 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/pylab_examples/loadrec.py
Original file line number Diff line number Diff line change
@@ -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