Re: [Matplotlib-users] Using colorbar in animation

2013-05-29 Thread zetah
I got a revelation - as colorbar wasn't changing with animation iteration I put it in init() function and draw the first frame there. Voila :) -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET G

[Matplotlib-users] Using colorbar in animation

2013-05-29 Thread zetah
Hi, I'm stacked again, sorry, but I couldn't find any pointers with my google. In my filled contour animation I thought to use colorbar instead complicating with contour labeling, which just makes animation too full. So after reading the docs, I used something like this simplified code: ===

[Matplotlib-users] A generous donation of $10, 000 from Simula/Hans Petter Langtangen via NumFOCUS

2013-05-29 Thread Fernando Perez
Hi all, I just wanted to let you all know that Hans Petter Langtangen, well-known author of books on scientific Python and long-time champion of these tools at the University of Oslo for many years, has arranged for a donation of $10,000 to support matplotlib's development. Hans Petter is the Dir

Re: [Matplotlib-users] Animation module: every loop takes more and more time

2013-05-29 Thread zetah
Benjamin Root wrote: >The init() function only happens once. So, each call to >ax.contourf() just >simply adds more contours on top of the previous (you just don't >see them >because you don't have masked regions or transparency). I would >suggest >doing an ax.cla() in the animate() function b

Re: [Matplotlib-users] Animation module: every loop takes more and more time

2013-05-29 Thread Benjamin Root
On Wed, May 29, 2013 at 3:03 PM, zetah wrote: > Please consider this small script: > > The init() function only happens once. So, each call to ax.contourf() just simply adds more contours on top of the previous (you just don't see them because you don't have masked regions or transparency). I w

[Matplotlib-users] Animation module: every loop takes more and more time

2013-05-29 Thread zetah
Please consider this small script: import numpy as np import matplotlib.pyplot as plt from matplotlib import animation from time import time def init(): return ax.cla() def animate(i): global t r = np.random.random(10)