I have a loop like this
#!/usr/bin/env python
import matplotlib.pyplot as p
for i in xrange(N):
# Create my_image here
# Display this image
p.fi
After tinkering around with unutbu's example, I found a behavior that I could normally and debug with PyDev where I could progressively see the plots.
import time, threading
import numpy
from matplotlib.pyplot import *
x = numpy.linspace(0, 10)
y = x**2
def main():
plot(x, x)
draw()
time.sleep(2)
plot(x, y)
draw()
thread = threading.Thread()
thread.run = main
manager = get_current_fig_manager()
manager.window.after(100, thread.start)
figure(1)
show()