title: Moving a Pandas Legend causes labels to changes from patches to lines
body: <p>I'm moving a <code>Pandas</code> legend but trying to keep it as patches. It swaps to lines when I try to adjust the parameters - <em>is there a setting I'm missing to stop this happening or am I resetting the legend or something by accident?</em> What am I doing wrong?</p>
  
  <p>The code is a bit complicated so I'm putting in the useful bits. Don't worry about bad formatting, I just skipped out a load of formatting lines to make it simpler to understand.</p>
  
  <p>Simplified code:</p>
  
  <pre><code>my_colors = list(['goldenrod', 'royalblue', 'darkviolet', 'firebrick'])
  
  #set up subplots
  fig_heatprop, axes_heatprop = plt.subplots(nrows=2, ncols=1, sharex=True, gridspec_kw = {'height_ratios':[8, 1]})
  
  #make totales percentages
  df_touse_perc = df_touse.divide(df_touse.sum(axis=1), axis=0).multiply(100)
  
  ax = df_touse_perc.plot(kind='area', stacked=True, color=my_colors, ax=axes_heatprop[0]) #.legend(bbox_to_anchor=(0.2, -0.3), ncol=2)
  </code></pre>
  
  <p>does this:
  <a href="https://i.stack.imgur.com/6bxBQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6bxBQ.png" alt="enter image description here"></a></p>
  
  <p><strong>but if I try to move the legend, it swaps it from patches to lines</strong></p>
  
  <pre><code>#move legend
  ax.legend(loc=9, bbox_to_anchor=(0.2, -0.2), ncol=2)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/U8AOH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U8AOH.png" alt="enter image description here"></a></p>