【发布时间】:2019-06-16 08:10:01
【问题描述】:
这不在jupyter 笔记本中,所以这不是duplicate of this question,但我的代码是:
from gluoncv import model_zoo, data, utils
from matplotlib import pyplot as plt
...
plt.show()
我得到的错误是:
/figure.py:445: UserWarning: Matplotlib is currently using ps, which is a non-GUI backend, so cannot show the figure.
% get_backend())
我在https://repl.it/@shamoons/WelloffHarmfulMineral创建了一个repl
如果重要的话,我使用的是 OS X。我需要做什么才能显示图像?
【问题讨论】:
-
PS后端用于创建 PostScript 文件,而不是显示图形。该警告是matplotlib告诉您,您对plt.show()的调用不会做您认为它会做的事情。
标签: python matplotlib