title: Contourf and quiver Animation with Basemap Python
body: <p>I have two different datasets with different (lat, lon) grid over a common region. I am trying to plot a contourf of one and quiver of another on a common basemap, and then animate this over time.
  I have followed this <a href="http://matplotlib.org/basemap/users/examples.html" rel="nofollow">http://matplotlib.org/basemap/users/examples.html</a> and this <a href="https://github.com/matplotlib/basemap/blob/master/examples/animate.py" rel="nofollow">https://github.com/matplotlib/basemap/blob/master/examples/animate.py</a>.</p>
  
  <p>So far I have: </p>
  
  <pre><code>m = Basemap(llcrnrlon=min(lon),llcrnrlat=min(lat),urcrnrlon=max(lon),urcrnrlat=max(lat),
              rsphere=(6378137.00,6356752.3142),resolution='h',projection='merc')
  
  # first dataset
  lons, lats = numpy.meshgrid(lon, lat)
  X, Y = m(lons, lats)
  
  # second dataset
  lons2, lats2 = numpy.meshgrid(lon2, lat2)
  xx, yy = m(lons2, lats2)
  
  #colormap 
  levels = numpy.arange(0,3,0.1)
  cmap = plt.cm.get_cmap("gist_rainbow_r")
  
  # create figure.
  fig=plt.figure(figsize=(12,8))
  ax = fig.add_axes([0.05,0.05,0.8,0.85])
  
  # contourf 
  i = 0
  CS = m.contourf(xx,yy,AUX[i,:,:],levels,cmap=cmap,extend='max')
  cbar=plt.colorbar(CS)
  
  # quiver
  x = X[0::stp,0::stp]   #plot arrows with stp = 2
  y = Y[0::stp,0::stp]
  uplt = U[i,0::stp,0::stp]
  vplt = V[i,0::stp,0::stp]
  Q = m.quiver(x,y,uplt,vplt,color='k',scale=15)
  qk = ax.quiverkey(Q,0.1,0.1,0.5,'0.5m/s')
  
  # continents 
  m.drawcoastlines(linewidth=1.25)
  m.fillcontinents(color='0.8')
  
  def updatefig(i):
      global CS, Q
      for c in CS.collections: c.remove()
  
      CS = m.contourf(xx,yy,AUX[i,:,:],levels,cmap=cmap,extend='max')
  
      uplt = U[i,0::stp,0::stp]
      vplt = V[i,0::stp,0::stp]
      Q.set_UVC(uplt,vplt)
  
  anim = animation.FuncAnimation(fig, updatefig, frames=AUX.shape[0],blit=False)
  
  plt.show()
  </code></pre>
  
  <p>Everything works fine for the first plot (i=0) but afterwards I only get the contourf animation without any quiver plot superimposed (but the quiverkey appears!)
  Both animations separately work fine, but not together.
  Is there a problem of having two different x,y on a basemap?</p>