title: Matplotlib: Don't show errorbars in legend
body: <p>I'm plotting a series of data points with x and y error but do NOT want the errorbars to be included in the legend (only the marker). Is there a way to do so?</p>
  
  <p><img src="https://i.stack.imgur.com/cpZ78.png" alt="How to avoid errorbars in legend?"></p>
  
  <p>Example:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  import numpy as np
  subs=['one','two','three']
  x=[1,2,3]
  y=[1,2,3]
  yerr=[2,3,1]
  xerr=[0.5,1,1]
  fig,(ax1)=plt.subplots(1,1)
  for i in np.arange(len(x)):
      ax1.errorbar(x[i],y[i],yerr=yerr[i],xerr=xerr[i],label=subs[i],ecolor='black',marker='o',ls='')
  ax1.legend(loc='upper left', numpoints=1)
  fig.savefig('test.pdf', bbox_inches=0)
  </code></pre>