代码之家  ›  专栏  ›  技术社区  ›  theletz

用户警告:此图包含与紧密布局不兼容的轴,因此结果可能不正确。演出结束后

  •  0
  • theletz  · 技术社区  · 5 年前

    我使用matplotlib子块(其中一个子块是表),

    之后 plt.show() 我收到这个警告:

    UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect.
    

    我试着用几种方法解决它,但没有成功。

    fig.set_tight_layout(False)
    fig.show()
    
    0 回复  |  直到 5 年前