title: Matplotlib legend with line and area styles
body: <p>I am trying to plot a line and area graph in the same figure with a legend that displays both the line and area styles.  Unfortunately the code below only produces lines and no areas in the legend.  </p>
  
  <p>Is it possible to get both lines and areas in the same legend?  If not, can I get a second legend for the area charts on the same figure?</p>
  
  <pre><code>import pandas as pd
  import numpy as np
  import matplotlib.pyplot as plt
  %matplotlib inline
  
  dates = pd.date_range('20130101', periods=6)
  df = pd.DataFrame(np.abs(np.random.randn(6,4)), index=dates, columns=list('ABCD'))
  f, ax = plt.subplots()
  df[['A','B']].plot(ax=ax, figsize=(10,5))
  df[['C','D']].plot(kind='area',ax=ax, figsize=(10,5))
  ax.legend(loc='center left', bbox_to_anchor=(1, 0.5))
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/lqwVw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lqwVw.png" alt="plot of line and area graphs"></a></p>