title: matplotlib FuncAnimation: when to stop?
body: <p>According to matplotlib's documentation, <code>FuncAnimation</code> calls a funtion repeatedly to make an animation. </p>
  
  <p>The question is, how should I tell <code>FuncAnimation()</code> to stop when no more image data available?</p>