如果遇到问题:

__main__:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

 

解决方案:

在程序中增加一条语句:

import matplotlib

matplotlib.use('TkAgg') (增加这条语句)

相关文章:

  • 2021-12-19
  • 2022-01-12
  • 2021-07-03
  • 2021-07-01
  • 2021-07-21
  • 2021-08-30
  • 2021-07-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-13
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
相关资源
相似解决方案