title: matplotlib legend order horizontally first
body: <p>Is there a way to make a plot legend run horizontally (left to right) instead of vertically, without specifying the number of columns (<code>ncol=...</code>)?</p>
  
  <p>I'm plotting a varying number of lines (roughly 5-15), and I'd rather not try to calculate the optimal number of columns dynamically (i.e. the number of columns that will fit across the figure without running off, when the labels are varying).  Also, when there is more than a single row, the ordering of entries goes top-down, then left-right; if it could default to horizontal, this would also be alleviated.</p>
  
  <p>Related: <a href="https://stackoverflow.com/questions/10101141/matplotlib-legend-add-items-across-columns-instead-of-down">Matplotlib legend, add items across columns instead of down</a></p>