title: matplotlib: alignment of legend title
body: <p>In matplotlib, how can I adjust the alignment of the <em>legend title</em>? It is always centered, but I need it to be left aligned with the legend box. I tried to change the alignment of the title's Text artist which has no effect. See the following example for details:</p>
  
  <pre><code>from pylab import *
  
  x = linspace(0, 1)
  plot(x, x, label="1")
  plot(x, x**2, label="2")
  plot(x, x**3, label="3")
  plot(x, sqrt(x), label="square root")
  
  l = legend(title="Title", loc="best")
  l.get_title().set_ha("left")               # &lt;== does not work
  
  show()
  </code></pre>
  
  <p>The question boils down to what and who controls the anchor point of the title alignment? Changing the alignment to "right" or "center" has a noticeable effect. Second observation: for long title strings the anchor point moves to the left border of the legend box ...</p>