pydata p26 图片显示不出来

来源:互联网 发布:淘宝联盟客服热线 编辑:程序博客网 时间:2024/06/11 15:57
In [64]: tz_counts[:10].plot(kind='barh',rot=0)

Out[64]: <matplotlib.axes.AxesSubplot at 0x5b65a90>


solution:

http://blog.csdn.net/lg1259156776/article/details/52717445

解决方案是:导入matplotlib.pyplot库,绘图后再调用matplotlib.pyplot.show()方法就能把绘制的图显示出来了!

import pandas as pdfrom numpy import *import matplotlib.pyplot as pltts = pd.Series(random.randn(1000), index=pd.date_range('1/1/2000', periods=1000))ts = ts.cumsum()ts.plot()plt.show()

原创粉丝点击