title: Create subplots in Matplotlib in a loop?
body: <p>I am using this code which provides nice plots one after the next (using IPython-notebook &amp; Pandas)</p>
  
  <pre><code>for subsm in subsl:
      H7, subsm = sumsubdesc2(table, subsm)   
      ax1=H7.plot()
      plt.title('Rolling 4q mean %s'%(subsm))
      ax1.set_title('Rolling 4q mean %s'%(subsm))
      ax1.set_ylim(100000,600000)
  </code></pre>
  
  <p>I'd like to get the plots "2up" one next to the next for 3 rows total (5 subplots) can't figure out how to handle that since all the subplot examples seem to be for subplotting ether the data or specific plots and specific grid placement.</p>
  
  <p>So I don't know how to create the main plot and then subplot a number of graphs (in this case 5) with titles as two-up?</p>
  
  <p>Edit line two of code since I left out the function call ;-(</p>