|
From: Benjamin R. <ben...@ou...> - 2010-07-05 17:10:18
|
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 is then redrawn at each frame to avoid having to do a complete re-render of it. So, if you can display a particular image to a plot before calling copy_from_bbox(), but after the canvas.draw() call, then the animation should work as you would like with blitting, and you won't need to repeat the function call to plot the background in the animation. Note, I have not tried this, so please let us know how this works for you. Ben Root On Mon, Jul 5, 2010 at 5:45 AM, German Ocampo <ger...@gm...> wrote: > 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 > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |