opensuse13.2 plt.show不能显示图片问题

来源:互联网 发布:ubuntu 图形界面 编辑:程序博客网 时间:2024/06/06 02:58

在ipython下执行 %pylab,

结果是 Using matplotlib backend: Agg

而agg是不画图的


解决方法是安装 tkinter

在opensuse下,zypper in tk-devel

pip2.7 uninstall -y matplotlib

pip2.7 install -U matplotlib


再次查看,

In [1]: %pylab
Using matplotlib backend: Qt4Agg
Populating the interactive namespace from numpy and matplotlib


ok

0 0
原创粉丝点击