使用:如何使用matplotlib在python中保存绘图?
In [42]: tz_counts[:10].plot(kind='barh', rot=0)
它返回:
Out[42]: <matplotlib.axes._subplots.AxesSubplot at 0x7fa216b464d0>
但我不能看到任何文件,也没有显示任何。
我今天开始学习python。 有人可以帮我吗?
使用:如何使用matplotlib在python中保存绘图?
In [42]: tz_counts[:10].plot(kind='barh', rot=0)
它返回:
Out[42]: <matplotlib.axes._subplots.AxesSubplot at 0x7fa216b464d0>
但我不能看到任何文件,也没有显示任何。
我今天开始学习python。 有人可以帮我吗?
您尝试保存的情节作为形象?像一个PNG? – JuanPablo
http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.savefig – JuanPablo