1、问题描述:
\python\Lib\site-packages\simpleNomo\__init__.py:346: UserWarning: Tight layout not applied. tight_layout cannot make axes height small enough to accommodate all axes decorations.
fig.tight_layout()
2、解决:
将 fig.tight_layout() 修改为:
plt.savefig('fig.png', bbox_inches ='tight')
引用来自:
UserWarning: Tight layout not applied._userwarning: tight layout not applied. the bottom -CSDN博客