title: Matplotlib: How to combine scatter and line plot to one legend entry
body: <p>I draw my data points with ax.scatter() and connect the data points with a fit using ax.plot(). </p>
  
  <p>How do I create a common entry in the legend that combines the marker for the data point with the line of the fit? I want to get a legend entry as I would get it for <code>ax.plot(x, y, '-o', label = 'abc')</code>.</p>
  
  <p>I have created the following minimal example:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  import numpy as np
  
  x_scatter = np.linspace(0,10,10)
  x_line = np.linspace(0,10,100)
  
  fig, ax = plt.subplots()
  
  for i in range(5):
      ax.scatter(x_scatter, np.sin(x_scatter) + i, label = i)
      ax.plot(x_line, np.sin(x_line)+i)
  
  plt.legend(loc='best')
  plt.show()
  </code></pre>