From: Brian G. <ell...@gm...> - 2011-03-02 18:44:05
|
Is the old method (just using draw/set_xdata, etc.) not supported? I am working with a student and I want to keep is dead simple. Brian On Wed, Mar 2, 2011 at 10:22 AM, Benjamin Root <ben...@ou...> wrote: > > > On Wed, Mar 2, 2011 at 7:44 AM, John Hunter <jd...@gm...> wrote: >> >> On Wed, Mar 2, 2011 at 12:27 AM, Brian Granger <ell...@gm...> >> wrote: >> > Hi, >> > >> > I am trying to do a simple animation examples similar to the one here: >> > >> > >> > http://www.scipy.org/Cookbook/Matplotlib/Animations#head-e50abcca4333d3d76b3f2bb66ef00f15c6b4dbbc >> > >> > But it does not work. I have tried with different backends, plain >> > python, within ipython. I am using ipython 0.10 and matplotlib 0.99.3 >> > from EPD. I have used this approach in the past, but no luck this >> > time. If I add a show() early on, the first plot shows OK, but it >> > sits and waits until I close the plot window before moving on. Any >> > ideas? >> >> If you are running mpl from the development tree on github, I suggest >> you use the new animations API, which hides much of the complexity. >> See >> >> https://github.com/matplotlib/matplotlib/tree/master/examples/animation >> >> If you are running a released mpl, you can simply drop the >> animation.py file into your PYTHONPATH and use it directly >> >> >> https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/animation.py >> >> Hope this helps, >> JDH >> > > I don't think that is necessarily true. If I remember correctly, Ryan May > introduced some other API changes (I think they made it to the 1.0.x branch) > in order to facilitate his animations. > > Ben Root > > -- Brian E. Granger, Ph.D. Assistant Professor of Physics Cal Poly State University, San Luis Obispo bgr...@ca... ell...@gm... |