title: How to make a gif out of subplot?
body: <p>I'm using this code from matplotlib website to generate gif through list of images.
  <a href="https://matplotlib.org/gallery/animation/dynamic_image2.html" rel="nofollow noreferrer">https://matplotlib.org/gallery/animation/dynamic_image2.html</a></p>
  
  <p>However, I'm struggling to figure out how to make it work if I have subplot with two axes inside it. Thus, it is as if I have two images, which one should I append to the list?</p>
  
  <p>EDIT: sample code:</p>
  
  <pre><code>ims = []
  for i in range(60):
      x += np.pi / 15.
      y += np.pi / 20.
      im = plt.imshow(f(x, y), animated=True)
      ims.append([im])
  
  ani = animation.ArtistAnimation(fig, ims, interval=50, blit=True,
                                  repeat_delay=1000)
  </code></pre>