title: Animating axes size and 2 sequential animations in python and matplotlib
body: <p>I am teaching myself python math animation so I don't even know if what I'm asking is possible with matplotlib.  What I want is 
  (1)for the axes to start off small then expand.  After this, I want it to 
  (2) plot two lines sequentially (one after the other) rather than concurrently (at the same time) which is what it is doing.<br>
  My code is below except for my attempts to expand the axes (at best my attempts didn't crash python).</p>
  
  <pre><code>import time 
  import numpy as np
  import matplotlib.pyplot as plt
  import matplotlib.animation as animation
  #from matplotlib.animation import FuncAnimation
  
  
  maxsize = 8
  size = 1
  fig = plt.figure(figsize=(maxsize, maxsize))
  # fig will start at "size" if I ever figure out the animation
  xmin = -10
  xmax = 10
  ymin = -10
  ymax = 10
  ax = plt.axes(xlim=(xmin, xmax), ylim=(ymin, ymax))
  plt.axhline(linewidth=3, color='black')
  plt.axvline(linewidth=3, color='black')
  line, = ax.plot([], [], lw=2)
  
  
  def init1():
      line.set_data([], [])
      return line,
  
  def animate1(i):
      x1 = np.linspace(-10, i/5 - 10, 1000)
      y1 = -1*x1
      line.set_data(x1, y1)
      return line,
  
  def init2():
      line.set_data([], [])
      return line,
  
  def animate2(j):
      x2 = np.linspace(0, j/10, 1000)
      y2 = 2*x2
      line.set_data(x2, y2)
      return line,
  
  plt.grid()
  plt.xticks(np.arange(xmin, xmax+1, 1.0))
  plt.yticks(np.arange(ymin, ymax+1, 1.0))
  
  anim1 = animation.FuncAnimation(fig, animate1, init_func=init1, 
      frames=100, interval=20, blit=True) 
  plt.plot() 
  plt.show()
  time.sleep(1)
  anim2 = animation.FuncAnimation(fig, animate2, init_func=init2, 
      frames=100, interval=20, blit=True)
  plt.plot() 
  plt.show()
  </code></pre>
  
  <p>So I guess my questions are:
  Is what I want to do possible in matplotlib?  One?  The other? Both?
  If so, how do I do it.</p>