From: Ryan M. <rm...@gm...> - 2009-01-20 02:19:55
|
Simone Gabbriellini wrote: > I see that you first build your array and then display it at the end... > > is it possible in matplotlib to update the plot while the class is > evolving? like: > > f.evolve(6) > f.display() > f.evolve(.27) > f.display() > f.evolve(10) > f.display() > f.evolve(2) > f.display() You'd want to look at the animation examples in examples/animation. The exact details will depend upon what backend you want to use, but strip_chart_demo.py, simple_anim_gtk.py, and gtk_timeout.py are good places to start. HTH, Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |