首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >IPython无法绘制3D散点图

IPython无法绘制3D散点图
EN

Stack Overflow用户
提问于 2016-01-22 03:44:38
回答 1查看 765关注 0票数 1

当我尝试绘制3D散点图per the instructions here时,得到以下错误:

代码语言:javascript
复制
In [10]: Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5agg.py", line 176, in __draw_idle_agg
    FigureCanvasAgg.draw(self)
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_agg.py", line 474, in draw
    self.figure.draw(self.renderer)
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/artist.py", line 61, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/figure.py", line 1159, in draw
    func(*args)
  File "/usr/local/lib/python2.7/dist-packages/mpl_toolkits/mplot3d/axes3d.py", line 271, in draw
    for col in self.collections]
  File "/usr/local/lib/python2.7/dist-packages/mpl_toolkits/mplot3d/art3d.py", line 455, in do_3d_projection
    xs, ys, zs = self._offsets3d
AttributeError: 'Path3DCollection' object has no attribute '_offsets3d'

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@scipy.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    %config Application.verbose_crash=True

之前,我在使用PyQt4时遇到了这个错误。我花了几个小时安装PyQt5 (在我的Ubuntu版本上很困难)。现在使用以下命令启动ipython

代码语言:javascript
复制
ipython --pylab='qt5'

我希望它能正常工作,但在尝试绘图时再次得到相同的错误信息。

请注意,当我调用scatter方法时会发生这种情况。然后,在我关闭该图之前,每当我在ipython中点击enter时,它都会继续给出相同的回溯。

你知道我可能做错了什么吗?

EN

回答 1

Stack Overflow用户

发布于 2016-01-22 04:24:26

看来我找到问题了。不带**I was passing some keyword argumentsscatter()

啊。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34932907

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档