您的位置:首页 > 其它

pylab绘图no display name and no $DISPLAY environment variable的解决办法

2015-01-26 11:31 633 查看
在stackoverflow中找到了终极解决办法:

>>> import matplotlib
>>> matplotlib.matplotlib_fname()
# This is the file location in Ubuntu
'/etc/matplotlibrc'


找到matplotlibrc之后,将backend从tkAGG修改为AGG
http://stackoverflow.com/questions/2801882/generating-a-png-with-matplotlib-when-display-is-undefined
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐