ion() is not working

Hey all!

I have been using interactive mode inside classes for a long time, but now
I'm just trying to use it in a Shell (idle or even in terminal) and it's not
working.

I try even simple stuff like:

import matplotlib.pyplot as plt

plt.ion()
plt.plot([1.6,2.7])
plt.draw()

I have found in a topic that using plt.pause(0.001) would work, and indeed
it shows the graph. But after
a few seconds the window gets unresponsive. Note that when I turn off the
interactive mode everything works normally as well...

In my application, I am plotting a graph (with networkX) and I have to
refresh it once in a while. When I use the interactive mode inside of a
class, everything works fine. But now I'm using a module with no class
inside (or even in the shell) and it refuses to plot!

Any ideas?

Thanks a lot!

Bruno

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/ion-is-not-working-tp41755.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hey all!

I have been using interactive mode inside classes for a long time, but now
I'm just trying to use it in a Shell (idle or even in terminal) and it's not
working.

I try even simple stuff like:

import matplotlib.pyplot as plt

plt.ion()
plt.plot([1.6,2.7])
plt.draw()

I have found in a topic that using plt.pause(0.001) would work, and indeed
it shows the graph. But after
  a few seconds the window gets unresponsive. Note that when I turn off the
interactive mode everything works normally as well...

In my application, I am plotting a graph (with networkX) and I have to
refresh it once in a while. When I use the interactive mode inside of a
class, everything works fine. But now I'm using a module with no class
inside (or even in the shell) and it refuses to plot!

Any ideas?

The problem here is one of expectations. See http://matplotlib.org/users/shell.html

Eric

···

On 2013/08/08 12:33 AM, bruno.pace wrote:

Thanks a lot!

Bruno

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/ion-is-not-working-tp41755.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users