【发布时间】:2014-03-20 16:22:29
【问题描述】:
我在 OSX 上运行以下代码 https://github.com/oxford-cs-advanced-ml-2014/practical3/blob/master/gp_demo.py,它使用 matplotlib 绘制结果。 当我在 Ubuntu 下运行代码时,我得到了正确显示的结果,如下所示:
但是,当我在 OSX 下运行它时,我得到以下错误的情节:
我尝试删除并重新安装 python,但没有任何效果。我当前的 python 发行版。是 2.7,我已经使用 http://fonnesbeck.github.io/ScipySuperpack/ 从自制软件安装了它(一开始我有 macports dist 并且没有任何区别。)
这是一个常见的问题吗? 谢谢
【问题讨论】:
-
两个系统下matplotlib版本是多少?
-
Ubuntu 运行 matplotlib 1.2.1 和 macosx 1.3.1
-
可能是版本相关问题。我使用
Anaconda分发并保持最新。我得到了你的图 1 所示的内容。
标签: python macos python-2.7 matplotlib