sou*_*oor 3 python matplotlib seaborn
我用seaborn制作了一个热图,在ipython笔记本中看起来如下:
但是当我尝试通过以下方式保存它时:
fig = plt.get_figure() fig.savefig('heatmap.png')
只是部分图形被保存,y轴的一些标签丢失了:
你能告诉我如何保存整个数字吗?提前致谢!
Ser*_*ity 5
尝试 fig.savefig('heartmap.png',bbox_inches='tight')
fig.savefig('heartmap.png',bbox_inches='tight')
归档时间:
9 年,1 月 前
查看次数:
459 次
最近记录: