title: Order in legend plots python
body: <p>I need to plot multiple sets of data on the same plot, and I use matplotlib. </p>
  
  <p>For some of plots I use <code>plt.plot()</code> and for the others I use <code>plt.errorbar()</code>. But when I make a legend the ones created with <code>plt.plot()</code> appears first, no matter in which order I put them in the file (and <code>zorder</code> seems to have no effect on the position in the legend). </p>
  
  <p>How can I give the order that I want in the legend, regardless of the way I plot the data?</p>