在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