问题描述
我正在尝试运行Github中的物质端口提供的Mask-RCNN存储库. https://github.com/matterport/Mask_RCNN .当我在anaconda中运行演示时,显示为"C:\Anaconda\lib\site-packages\matplotlib\figure.py:445: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. % get_backend()) "
.有没有人遇到类似的问题?
I was trying to run the Mask-RCNN repository provided by the matterport in Github. https://github.com/matterport/Mask_RCNN. when I run the demo in the anaconda, it showed "C:\Anaconda\lib\site-packages\matplotlib\figure.py:445: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. % get_backend()) "
. Is there someone came cross the similar problem?
推荐答案
如果要在远程服务器上进行绘图,则可以使用ssh X11转发来显示matplotlib绘图.
If you are trying to plot on a remote server, ssh X11 forwarding can then be used to display matplotlib plots.
尝试使用它,
import matplotlib
matplotlib.use('tkagg')
确保您拥有XMing或XQuartz(如果在Mac上),并使用-Y
Make sure you have XMing or XQuartz (if you're on mac), and use -Y
这篇关于py:445:用户警告:Matplotlib当前正在使用agg,它是非GUI后端,因此无法显示该图. %get_backend())的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!