|
From: bruno.pace <bru...@gm...> - 2013-08-08 10:33:29
|
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. |