Fiocco Davide wrote: > Dear all, > > I'm trying to plot a 2D vector field. It's a function of time so I would like > to display an animation. > For single frames I used quiver and I'm happy with it... is there any way to > update a quiver with time? >
If the vectors will always be at the same locations, then you can use the set_UVC method to update the vector data; this should make it possible to use one of the animation techniques for which examples are given in the examples/animation subdirectory of the mpl source distribution. (The examples subdirectory of the source is generally a better source of up-to-date examples than the cookbook.) I haven't tried it, though, and I don't know of any example specific to quiver. Depending on your use case, you may find it more desirable to save a set of single frames and then display them as a movie or animated gif. A movie-making example is included in examples/animation. Eric > I tried something close to what I found on > http://www.scipy.org/Cookbook/Matplotlib/Animations but that didn't work. > > Thanks a lot, > > Davide > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users