Hi,
I used to make animated figures generated with scripts similar to the
one attached. It works fine with GTKAgg backend, but does not work with
QT4Agg one: the figure just flashes at the end of the animation!
Is it a bug in Qt4Agg, or an unimplemented feature? Is there any way
other than switching back to GTKAgg specifically?
Cheers,
Yannick
PS: I now about the recent Animation module, but I don't want to update
all my scripts to this new framework.
#!/usr/bin/env python
import numpy as N
import time
import matplotlib
#matplotlib.use("GTKAgg") # OK
matplotlib.use("Qt4Agg") # Not working
#matplotlib.use("WXAgg") # Buggy
import matplotlib.pyplot as P
P.ion()
fig = P.figure()
ax = fig.add_subplot(1,1,1)
x = N.linspace(0,20)
line, = ax.plot(x, N.sin(x))
for i in range(25):
print i
time.sleep(.04)
line.set_data(x, N.sin(x+i))
P.draw()
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users