title: Resize a figure automatically in matplotlib
body: <p>Is there a way to automatically resize a figure to properly fit contained plots in a matplotlib/pylab image?  </p>
  
  <p>I'm creating heatmap (sub)plots that differ in aspect ratio according to the data used.</p>
  
  <p>I realise I could calculate the aspect ratio and manually set it, but surely there's an easier way? </p>