Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09f2577 commit e41161bCopy full SHA for e41161b
1 file changed
examples/pylab_examples/loadrec.py
@@ -1,6 +1,6 @@
1
from __future__ import print_function
2
from matplotlib import mlab
3
-from pylab import figure, show
+import matplotlib.pyplot as plt
4
import matplotlib.cbook as cbook
5
6
datafile = cbook.get_sample_data('msft.csv', asfileobj=False)
@@ -9,7 +9,7 @@
9
a.sort()
10
print(a.dtype)
11
12
-fig = figure()
+fig = plt.figure()
13
ax = fig.add_subplot(111)
14
ax.plot(a.date, a.adj_close, '-')
15
fig.autofmt_xdate()
@@ -20,4 +20,4 @@
20
exceltools.rec2excel(a, 'test.xls')
21
except ImportError:
22
pass
23
-show()
+plt.show()
0 commit comments