title: Plotting animation time
body: <p>I am plotting an animation and I want to see at which time/step the animation is while watching it.</p>
  
  <pre><code>fig = plt.figure()
  ax1 = fig.add_subplot(1, 1, 1)
  
  cax1 = ax1.matshow(coherence_matrices[0], cmap='YlOrRd')
  time = ax1.annotate(0, xy=(1, 8), xytext=(1, 8))
  
  def animate(i):
  
      cax1.set_array(coherence_matrices[i])
  
      time.set_text(i)
  
      return time, cax1
  
  anim = animation.FuncAnimation(fig, animate,
                                 frames=int((4000-window_size)/window_step), interval=80, blit=True)
  
  plt.show()
  </code></pre>
  
  <p>I only came up with this solution, which should make appear the iteration number on top of the histogram, but nothing appears. I would like to know what is wrong and whereas there is a simpler way to see the timer in the animation.</p>
  
  <p>Thanks a lot in advanced. </p>