我可以从常规 cmd shell 正常运行以下代码:
import matplotlib.pyplot as plt
fig = plt.figure()
plt.show()
它启动一个 Matplotlib 窗口。
然而,使用 shell 或 py-shell 在 Emacs 中运行:缓冲区只是挂起并且没有窗口启动。这是怎么回事?我该如何解决?
经过大量时间并在 matplotlib 项目页面和 python 模式页面上发布错误后,我发现提供参数console --matplotlib
在 ipython.bat 中将使用 Matplotlib 1.3.1 和 IPython 1.2.0 来实现这一点。
这就是我的iphython.bat file:
@python.exe -i D:\devel\Python27\Scripts\ipython-script.py console --matplotlib %*
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)