title: matplotlib numbers in legend
body: <p>I have a couple of lines and I want to show a legend. The problem is, I can't use different styles (<code>--</code>, <code>:</code>, <code>-.</code>) because there are too few of them, and I can't use markers (<code>+</code>, <code>*</code>, etc.) because I need them to show some points on the lines.</p>
  
  <p>So the best idea I've come up with is to use numbers. But I can't figure how I can create legends with numbers. I can even draw numbers near lines myself (to place them in the best position), but how can I then draw a legend with the numbers?</p>
  
  <p>I.e. instead of:</p>
  
  <pre><code>--  H
  -.- Li
  </code></pre>
  
  <p>I'd like something like:</p>
  
  <pre><code>1  H
  2  Li
  </code></pre>