首页 > 其他 > 详细

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

时间:2020-01-21 13:23:30      阅读:787      评论:0      收藏:0      [点我收藏+]

如果遇到问题:

__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之__main__:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

原文:https://www.cnblogs.com/elitphil/p/12221345.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!