I tried porting anim.py to TkAgg this morning and got it
> basically working. There are two things that might account
> for the trouble you've been having:
> 1. With TkAgg, at least for now, you have to call the
> figure manager show() method with each cycle rather than the
> canvas draw() method.
Would it be possible to reorganize tkagg so that a call to canvas.draw
also triggers a blit so that the interface could be more consistent
> 2. The Tk timed event system requires re-registering the
> handler with each cycle.
Or you can do something like this
updatefig.count += 1
cnt = updatefig()
if cnt==100: break
> Performance was better than I thought it would be but still
> kinda slow.
I profiled this because it was slower than I expected. Turns out that
there is a huge performance hit in the changes I made to Text to
handle arbitrary rotations (a lot of time spent in Matrix getitem,
multiply, etc...). With text I could get only 5 frames per second;
w/o text I get 13 fps. The good news is that it will be easy to
optimize away most of the text based performance hit using more
efficient matrix operations and caching.
This can likely be improved further by using collections for drawing
markers in the line class.
Gary: did Todd's example help you enough to speed you on your way?