title: How to put all legend entries on one line?
body: <p>I can't seem to find a solution.
  I have a legend that's custom (using solution found <a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F39500265%2Fmanually-add-legend-items-python-matplotlib&amp;h=ATME7DaamjHttEUXOesv8OKwKsnan0oO_KGeTwIkaYIcZwSvRAnhxL0jDcnS_GUoI9jvrou39Zcc3mmjdULYL0EFaVIR9P0RIbWRyPFTPyMPwKltbhWeQshyOdmKE7VE57t7w6KBYNJM0G0qFmN37go" rel="noreferrer">here</a>) and I'm trying to put multiple entries on one line rather than have each new entry under the previous one.
  How does one do?</p>
  
  <pre><code>red_patch = mpatches.Patch(color='red', label='The red data')
  blue_patch = mpatches.Patch(color='blue', label='The blue data')
  plt.legend(handles=[red_patch, blue_patch])
  </code></pre>
  
  <p>I'd like to have "(red marker) The red data, (blue marker) The blue data, etc..." all in one line on top. It'd be nice to have it start a new line too when there are more entries than can fit on the plot. So just like normal text I guess.</p>