Re: [Matplotlib-users] Animation with an image in the backgroud

2010-07-06 Thread German Ocampo
Benjamin Thanks for your advice. I Modified the example in the way that you say and now is working well. Basically I load the image before copy_from_bbox and also I take out the self.ax.clear() in the timerEvent. I'm including the program example with the animation of a dot following a circle path

Re: [Matplotlib-users] Animation with an image in the backgroud

2010-07-05 Thread Benjamin Root
I should first note that the way to do animations in matplotlib will probably be improved soon, the current methods should still be valid. Ok, the way how I understand how blitting works is that a copy of the static background is made before any of the "sprites" are drawn. That static background

[Matplotlib-users] Animation with an image in the backgroud

2010-07-05 Thread German Ocampo
Good morning I have a question regarding to animation in matplotlib using Blit.How can I modify the example animation_blit_qt4.py that is in the matplotlib website, in order to animate data, but instead of a white background I want to have an image (tif or jpg)? Many thanks for your help German