title: How can I make an animation with contourf()?
body: <p>I'm trying to animate the wigner function of the spatial coordinates of some time-dependent data. The wigner function is 2 dimensional, so I'm using contourf() to plot it. I have the data stored in a HDF5 file and can make Wigner distributions on the fly, but I can't figure out how to animate it. All of the animation tutorials and examples I've been able to find (for example <a href="http://jakevdp.github.io/blog/2012/08/18/matplotlib-animation-tutorial/">this one</a> and <a href="http://matplotlib.org/examples/animation/double_pendulum_animated.html">this one</a>) are strictly for line plots. Specifically, their <code>animate(i)</code> function uses <code>line.set_data()</code>, and I can't seem to find an equivalent for <code>contourf()</code>.</p>
  
  <p><strong>How can I animate images made with <code>contourf()</code>?</strong></p>
  
  <p><strong>What's the <code>contourf()</code> equivalent of <code>set_data()</code>?</strong></p>