matplotlib with eclipse: how to get a graph?

Hello list,

I recently started using Eclipse with Pydev. I like it a lot but have not been able to get interactive plotting going (which otherwise works fine).

My file is simple:

from pylab import *

ion()

plot([1,2,3])

When I run this form within Eclipse, I do see a graphing window open up but then it disappears again when it is done, before I can even look at it.

Any suggestions on how to keep the graphing window open?

Thanks,

Mark

Hello list,

I recently started using Eclipse with Pydev. I like it a lot but have not been able to get interactive plotting going (which otherwise works fine).

My file is simple:

from pylab import *

ion()

plot([1,2,3])

When I run this form within Eclipse, I do see a graphing window open up but then it disappears again when it is done, before I can even look at it.

Any suggestions on how to keep the graphing window open?

Thanks,

Mark

Hello list,

I recently started using Eclipse with Pydev. I like it a lot but have not been able to get interactive plotting going (which otherwise works fine).

My file is simple:

from pylab import *

ion()

plot([1,2,3])

You need to issue a show() here. Thus the plotting window will hang on the screen until you close it.

Eclipse Platform
Version: 3.5.0
Build id: I20090611-1540

PyDev for Eclipse 1.5.0.1251989166 org.python.pydev.feature.feature.group

···

On Wed, Sep 23, 2009 at 3:51 PM, Mark Bakker <markbak@…83…287…> wrote:

When I run this form within Eclipse, I do see a graphing window open up but then it disappears again when it is done, before I can even look at it.

Any suggestions on how to keep the graphing window open?

Thanks,

Mark


Come build with us! The BlackBerry® Developer Conference in SF, CA

is the only developer event you need to attend this year. Jumpstart your

developing skills, take BlackBerry mobile applications to market and stay

ahead of the curve. Join us from November 9-12, 2009. Register now!

http://p.sf.net/sfu/devconf


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Gökhan

Excellent. Many thanks.

After all those years of using matplotlib, I finally find a use for show()

Mark

···

On Wed, Sep 23, 2009 at 11:02 PM, Gökhan Sever <gokhansever@…287…> wrote:

On Wed, Sep 23, 2009 at 3:51 PM, Mark Bakker <markbak@…287…> wrote:

Hello list,

I recently started using Eclipse with Pydev. I like it a lot but have not been able to get interactive plotting going (which otherwise works fine).

My file is simple:

from pylab import *

ion()

plot([1,2,3])

You need to issue a show() here. Thus the plotting window will hang on the screen until you close it.

Eclipse Platform
Version: 3.5.0
Build id: I20090611-1540

PyDev for Eclipse 1.5.0.1251989166 org.python.pydev.feature.feature.group

When I run this form within Eclipse, I do see a graphing window open up but then it disappears again when it is done, before I can even look at it.

Any suggestions on how to keep the graphing window open?

Thanks,

Mark


Come build with us! The BlackBerry® Developer Conference in SF, CA

is the only developer event you need to attend this year. Jumpstart your

developing skills, take BlackBerry mobile applications to market and stay

ahead of the curve. Join us from November 9-12, 2009. Register now!

http://p.sf.net/sfu/devconf


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Gökhan

There is even a simpler use case :slight_smile:

Just put those three lines in a file say test.py

and try python test.py

Unless you are in ipython -pylab or threading enabled, it is required to issue a show() to see the results on the screen.

···

On Thu, Sep 24, 2009 at 4:46 AM, Mark Bakker <markbak@…985…> wrote:

Excellent. Many thanks.
After all those years of using matplotlib, I finally find a use for show()

Mark

On Wed, Sep 23, 2009 at 11:02 PM, Gökhan Sever <gokhansever@…985…> wrote:

On Wed, Sep 23, 2009 at 3:51 PM, Mark Bakker <markbak@…287…> wrote:

Hello list,

I recently started using Eclipse with Pydev. I like it a lot but have not been able to get interactive plotting going (which otherwise works fine).

My file is simple:

from pylab import *

ion()

plot([1,2,3])

You need to issue a show() here. Thus the plotting window will hang on the screen until you close it.

Eclipse Platform
Version: 3.5.0
Build id: I20090611-1540

PyDev for Eclipse 1.5.0.1251989166 org.python.pydev.feature.feature.group

When I run this form within Eclipse, I do see a graphing window open up but then it disappears again when it is done, before I can even look at it.

Any suggestions on how to keep the graphing window open?

Thanks,

Mark


Come build with us! The BlackBerry® Developer Conference in SF, CA

is the only developer event you need to attend this year. Jumpstart your

developing skills, take BlackBerry mobile applications to market and stay

ahead of the curve. Join us from November 9-12, 2009. Register now!

http://p.sf.net/sfu/devconf


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Gökhan


Gökhan