通过eclipse进行交互式matplotlib [英] interactive matplotlib through eclipse

查看:116
本文介绍了通过eclipse进行交互式matplotlib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过pydev进行交互式会话以使用matplotlib?问题是在show()命令后解释器停止时,我无法获得外壳程序访问权来驱动图表.我想通过pydev进行交互式会话.

is it possible to have an interactive session through pydev for using matplotlib? The problem is that I cannot get shell access to drive the charts as the interpretor halts after the show() command. I would like to have an interactive session through pydev.

matplotlib手册在此处很好地描述了交互式会话: http://matplotlib.sourceforge.net/users/shell.html

Interactive sessions are well described by the matplotlib manual here: http://matplotlib.sourceforge.net/users/shell.html

但是,没有提供有关Eclipse的示例.

However, no example is provided for doing this is eclipse.

推荐答案

我并没有太多使用pydev,但但是IIRC可以更改您使用的交互式解释器.如果可能的话,请安装ipython并在pylab模式下使用它(在命令行中为ipython --pylab)

I've not used pydev much, but IIRC you can change which interactive interpreter you use. If that's possible, install ipython and use it in pylab mode (ipython --pylab from the command line)

原来,您不能更改解释器.您可以运行解释器命令,以便也许可以以这种方式运行ipython shell,但是仅从终端启动ipython --pylab并在日食会话旁边运行它会更容易.

Turns out you can't change the interpreter. You can run interpreter commands so maybe it's possible to run an ipython shell that way, but it would be easier to just launch ipython --pylab from a terminal and run it along side your eclipse session.

HTH

这篇关于通过eclipse进行交互式matplotlib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆