title: Control the number of rows within a legend
body: <p>I am currently trying to plot a large amount of data on a single plot. I have structured my representation using repeated colors and symbols. However, when plotting the final results, the legend appears slightly off because I cannot control the number of rows within it. Thus, instead of getting 5 repeated green, then 5 repeated red, 5 repeated blue then 2 other, I get 5 -4 -4 -4 (where I would have prefered 5 - 5 - 5 - 2)</p>
  
  <p>You can clearly see this in attached image.</p>
  
  <p><a href="https://i.stack.imgur.com/3rTbI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3rTbI.png" alt="Plot with colored legend in wrong format"></a></p>
  
  <p>Right now I use these options for the legend:</p>
  
  <pre><code>axp.legend(loc="lower right",ncol=4)
  </code></pre>