Python小技巧

导出高清无白框图片

fig =plt.figure(figsize=(12,10))

fig.savefig('pics/cluster_%i.jpg'%(ncomp), format='jpg',dpi=300,bbox_inches = 'tight',pad_inches = 0)

 

posted @ 2020-12-24 20:20  icydengyw  阅读(160)  评论(0编辑  收藏  举报