This application has requested the Runtime to terminate it
> in an unusual way. Please contact the application's support
> team for more information.
Hi Gary, the good news is that I could replicate the bug on XP and the
better news is that I could fix it
It looks like a bug in the anim_tk script and not in matplotlib
proper. Basically, anim_tk never calls the tk mainloop. Why this
works under linux and not windows is not clear to me. The trick is to
start the tk mainloop and use the tk after handler to run a command
after x milliseconds. So I rewrote the example to do the animation in
a loop, and used the after command to start this function after the
mainloop is launched.
If you have any additional trouble, you may want to try turning off
tk.window_focus : False # Maintain shell focus for TkAgg
in your rc file.
Hope this helps!
#import Tkinter as Tk
import matplotlib.numerix as numerix
fig = matplotlib.matlab.figure(1)
ind = numerix.arange(60)
for i in range(100):
lines = matplotlib.matlab.plot(X[:,0],'o')
manager = matplotlib.matlab.get_current_fig_manager()
updatefig.count += 1
tstart = time.time()
cnt = updatefig()
if cnt==100: break
print 'elapsed', 100.0/(time.time() - tstart)
import Tkinter as Tk