title: Top label for matplotlib colorbars
body: <p>By default <code>matplotlib</code> would position colorbar labels alongside the vertical colorbars. What is the best way to force the label to be on top of a colorbar? Currently my solution needs adjusting <code>labelpad</code> and <code>y</code> values depending on size of the label:</p>
  
  <pre><code>import numpy as np
  import matplotlib.pylab as plt 
  
  dat = np.random.randn(10,10)
  plt.imshow(dat, interpolation='none')
  
  clb = plt.colorbar()
  clb.set_label('label', labelpad=-40, y=1.05, rotation=0)
  
  plt.show()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/EzVhA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/EzVhA.png" alt="colorbar top label"></a></p>
  
  <p>Is there a better, more generic way to do this?</p>