首页 > 其他 > 详细

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

时间:2020-01-28 14:19:31      阅读:1764      评论:0      收藏:0      [点我收藏+]

?

>>> plt.show()

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

?

原因:

发现发生在 coco.py 文件

技术分享图片

?

处理办法:

import matplotlib

>>> matplotlib.get_backend()

‘agg‘

>>> matplotlib.use(‘TkAgg‘)

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

原文:https://www.cnblogs.com/xiexiaokui/p/12237910.html

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