Deltarodigy wrote: > For my program I have been trying to animate a contour plot, the color bar, > and a subtitle saying what time step it is. I have gotten the graph to write > over itself but cannot get it clear the screen properly. Currently using the > clf function the wipe is visible messing with animation.
This is because all pylab/pyplot functions include a draw_if_interactive. They are intended for interactive use, not for programmed animation. For that you should use the OO interface. Have you worked through the animation examples? http://matplotlib.sourceforge.net/examples/index.html Mpl is not particularly fast, and some operations like contouring are inherently slow, so unless the fields you are contouring are quite simple you may run into performance problems. For animation of contours, you normally want to have contours at fixed intervals, so I expect you will want to specify those contour levels as an argument to the contour and contourf functions (or Axes methods, when you switch to an OO style.) That will allow drawing the colorbar only once. Eric > > Here is a link to my project, the graph code is all in gui.py the rest of > the files are for the generation of the data. > http://code.google.com/p/scc08/source/browse/#svn/branch/realistic2d ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users