title: Showing subplot colorbar for a matplotlib streamplot
body: <p>What I want to do is simple: for a plot created using <code>plt.subplots()</code> I would like to display a color bar.</p>
  
  <p>So, this is what I do:</p>
  
  <pre><code>def plotVF(self, u, v):
      m = np.sqrt(np.power(u, 2) + np.power(v, 2))
  
      xrange = np.linspace(0, u.shape[1], u.shape[1]);
      yrange = np.linspace(0, u.shape[0], u.shape[0]);
  
      x, y = np.meshgrid(xrange, yrange)
      mag = np.hypot(u, v)
      scale = 1
      lw = scale * mag / mag.max()
  
      f, ax = plt.subplots()
      h = ax.streamplot(x, y, u, v, color=mag, linewidth=lw, density=3, arrowsize=1, norm=plt.Normalize(0, 70))
      ax.set_xlim(0, u.shape[1])
      ax.set_ylim(0, u.shape[0])
      ax.set_xticks([])
      ax.set_yticks([])
      cbar = f.colorbar(h, ax=ax)
      cbar.ax.tick_params(labelsize=5) 
  
      plt.show()
  </code></pre>
  
  <p>Accordingly to what is shown in the <a href="http://matplotlib.org/examples/images_contours_and_fields/pcolormesh_levels.html" rel="nofollow noreferrer">docs</a>.
  However, I keep receiving:</p>
  
  <pre><code>AttributeError: 'StreamplotSet' object has no attribute 'autoscale_None'
  </code></pre>
  
  <p>This example has only one plot, but I'll have more than one, that's why I'm not directly using <code>plt.colorbar().</code></p>