如果遇到问题:
__main__:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
解决方案:
在程序中增加一条语句:
import matplotlib
matplotlib.use('TkAgg') (增加这条语句)
2024-03-25 22:55:34
如果遇到问题:
__main__:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
解决方案:
在程序中增加一条语句:
import matplotlib
matplotlib.use('TkAgg') (增加这条语句)
下一篇:Matplotlib的使用