通过eclipse交互式matplolib [英] interactive matplolib through eclipse

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

问题描述

是否可以通过pydev进行交互式会话来使用matplotlib?问题是,在show()命令之后解释器停止,我无法获取shell访问以驱动图表。我想通过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 更容易,并沿着它运行你的eclipse会话。

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交互式matplolib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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