码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-01-28 13:49:29      阅读:266      评论:0      收藏:0      [点我收藏+]

标签:style   http   ref   not show   png   span   href   black   agg   

?

>>> 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

标签:style   http   ref   not show   png   span   href   black   agg   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!