Python绘制图表——保存图表
千言万语汇成一句话:
plt.savefig(r'C:\Users\Hou\Downloads\贷款数据.png',dpi=400,bbox_inches='tight')
#dpi:像素
#bbox_inches:inches意思是英寸
#注意相同命名的会替换
- 上一篇 »Python-画图
- 下一篇 »基于html5 Canvas图表库 : ECharts
千言万语汇成一句话:
plt.savefig(r'C:\Users\Hou\Downloads\贷款数据.png',dpi=400,bbox_inches='tight')
#dpi:像素
#bbox_inches:inches意思是英寸
#注意相同命名的会替换