title: Matplotlib animate data in a dataframe using FuncAnimation command in matplotlib
body: <p>I have data saved in a dataframe format (xarray, similar to Pandas), and I want it to be animated with pcolormesh.</p>
  
  <pre><code>import sys
  import numpy as np
  import matplotlib.pyplot as plt
  from matplotlib.animation import FuncAnimation
  
  fig = plt.figure()
  ax1 = fig.add_subplot(1,1,1)
  
  def animate(i):
      graph_data = mytest.TMP_P0_L1_GLL0[i]
      ax1.pcolormesh(graph_data)
  
  FuncAnimation(plt,animate,frames=100)
  </code></pre>
  
  <p>which doesn't work for some reason (there is no error but when I show fig it is not animating).</p>
  
  <p>the way the data is laid out is that pcolormesh(mytest.TMP_P0_L1_GLL0[0]) will output a quadmesh, pcolormesh(mytest.TMP_P0_L1_GLL0[1]) will output a slightly different quadmesh...etc</p>
  
  <p>Thanks for your help!</p>