On Wed, Aug 5, 2009 at 8:23 AM, John Hunter <jdh2...@gmail.com> wrote:

> On Wed, Aug 5, 2009 at 8:08 AM, Michael Droettboom<md...@stsci.edu> wrote:
> > Images added to an axes get added to the axes' "images" member, so you
> can
> > simply remove it from there.
>
> It may be more efficient to call im.set_array(newdata) rather than
> creating a new image each time.  Eg
>
>
> http://matplotlib.sourceforge.net/examples/animation/dynamic_image_gtkagg.html


It should be noted, though, that in that case, newdata should be new
specgram data, not the original data.  matplotlib.mlab has a specgram()
function that performs the actual computation performed for the pyplot
plotting function of the same name.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
Sent from Norman, Oklahoma, United States
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to