title: Matplotlib Legend string formatting / Align
body: <p>I'm trying to plot a graph with a nicely formatted legend.</p>
  <pre><code>import matplotlib.pyplot as plt
  
  test_label =&quot;&quot;&quot;\
  CL      :1.2565
  CM      :1.2565
  Tot CD  :1.2565&quot;&quot;&quot;
  
  fig, ax = plt.subplots()
  
  foil=[(0, 1), (0, 0), 'black']
  ax.plot(*foil, label=test_label)
  
  plt.xlim(-0.5, 1.5)
  plt.ylim(-0.75, 0.75)
  plt.legend(frameon=False)
  plt.show(block=False)
  </code></pre>
  <p>As you can see the <em>test_label</em> is nicely formatted (vertically aligned colons), but this alignment is not preserved when I do the actual plot.</p>
  <p><a href="https://i.stack.imgur.com/ONKWt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ONKWt.png" alt="strong text" /></a></p>
  <p>Could anyone please suggest a way to place this legend in such a way that all colons are aligned vertically ?</p>