Skip to content

Commit e41161b

Browse files
committed
MEP12 on loadrec.py
1 parent 09f2577 commit e41161b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/pylab_examples/loadrec.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import print_function
22
from matplotlib import mlab
3-
from pylab import figure, show
3+
import matplotlib.pyplot as plt
44
import matplotlib.cbook as cbook
55

66
datafile = cbook.get_sample_data('msft.csv', asfileobj=False)
@@ -9,7 +9,7 @@
99
a.sort()
1010
print(a.dtype)
1111

12-
fig = figure()
12+
fig = plt.figure()
1313
ax = fig.add_subplot(111)
1414
ax.plot(a.date, a.adj_close, '-')
1515
fig.autofmt_xdate()
@@ -20,4 +20,4 @@
2020
exceltools.rec2excel(a, 'test.xls')
2121
except ImportError:
2222
pass
23-
show()
23+
plt.show()

0 commit comments

Comments
 (0)