title: Duplicate items in legend in matplotlib?
body: <p>I am trying to add the legend to my plot with this snippet:</p>
  
  <pre><code>import matplotlib.pylab as plt
  
  fig = plt.figure()
  axes = fig.add_axes([0.1, 0.1, 0.8, 0.8]) # left, bottom, width, height (range 0 to 1)
  axes.set_xlabel('x (m)')
  axes.set_ylabel('y (m)')
  for i, representative in enumerate(representatives):
      axes.plot([e[0] for e in representative], [e[1] for e in representative], color='b', label='Representatives')
  axes.scatter([e[0] for e in intersections], [e[1] for e in intersections], color='r', label='Intersections')
  axes.legend()   
  </code></pre>
  
  <p>I end up with this plot</p>
  
  <p><img src="https://i.stack.imgur.com/g3QQH.jpg" alt="enter image description here"></p>
  
  <p>Obviously, the items are duplicated in the plot. How can I correct this error?</p>