title: Is it possible to automatically generate multiple subplots in matplotlib?
body: <p>Is it possible to automatically generate multiple subplots in matplotlib? An example of the process I want to automate is:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  figure = plt.figure()
  ax1 = figure.add_subplot(2, 3, 1)
  ax2 = figure.add_subplot(2, 3, 2)
  ax3 = figure.add_subplot(2, 3, 3)
  ax4 = figure.add_subplot(2, 3, 4)
  ax5 = figure.add_subplot(2, 3, 5)
  ax6 = figure.add_subplot(2, 3, 6)
  </code></pre>
  
  <p>The subplots need unique names, as this will allow me to do stuff like:</p>
  
  <pre><code>for ax in [ax1, ax2, ax3, ax4, ax5, ax6]:
      ax.set_title("example")
  </code></pre>
  
  <p>Many thanks. </p>
  
  <p>Addition: Are there any functions that automate the generation of multiple subplots? What if I needed to repeat the above process 100 times? Would I have to type out every ax1 to ax100? </p>