pandas中的plot方法参数很多,可以满足大部分的作图需求,当想要直接把做好的图保存成本地文件,可以用如下语句:
ax=df.plot()
fig=ax.get_figure()
fig.savefig(r'filepath\name.png')
pandas中的plot方法参数很多,可以满足大部分的作图需求,当想要直接把做好的图保存成本地文件,可以用如下语句:
ax=df.plot()
fig=ax.get_figure()
fig.savefig(r'filepath\name.png')