导入matplotlib时:
from matplotlib import pyplot as plt
我收到用户警告:
^{pr2}$另外,我得到了大约50行"Notice Copyright [c] 1994 Luc[as] de Groot <luc@FontFabrik.com> Published by TEndFontMetrics..."
仅导入Matplotlib就如预期一样工作,没有显示任何警告。我在macosxel-Capitan(10.11.3)上使用Matplotlib版本1.5.1和python2.7.12
到目前为止,一切似乎都很好,但导入需要额外的时间,消息会涌入终端。原因是什么?是否可以禁用此行为?在
更新:我正在使用虚拟环境
我删除了字体列表.cache以及特克斯可可如whrrgarbl链接的answer to the question上的建议。另外,我创建了一个文件
~/.matplotlib/matplotlibrc
,并添加了一行:backend: TkAgg
,如建议的here。在这就解决了这个问题。在
相关问题 更多 >
编程相关推荐