I took out a wristwatch and timed it instead of guessing. I
> get three frames per second. It's about 4x from where we
> started, but still slow. I guess I'm just underpowered,
> although a couple of years ago this was a powerhouse. It
> seems that matplotlib may not be suited to this task. I
> don't think it should take 2 GHz just to power a stripchart.
One more comment here, mainly for Todd.
Todd, I get 34 FPS on anim.py with GTKAgg and only 21 FPS with the
anim_tk.py, where both scripts are doing the same thing. The profiler
reveals a good chunk of the time is in
103 2.300 0.022 2.300 0.022 tkagg.py:4(blit)
This may be a tk limitation, but I just wanted to point it out to you
in case there are any optimizations you can apply to that function.
I'll include the anim_tk.py I'm using for profiling below.
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 'FPS', 100.0/(time.time() - tstart)