title: Pandas bar plot with specific colors and legend location?
body: <p>I have a pandas <code>DataFrame</code> and I want to plot a bar chart that includes a legend.</p>
  
  <pre><code>import pylab as pl
  from pandas import *
  
  x = DataFrame({"Alpha": Series({1: 1, 2: 3, 3:2.5}), "Beta": Series({1: 2, 2: 2, 3:3.5})})
  </code></pre>
  
  <p>If I call plot directly, then it puts the legend above the plot:</p>
  
  <pre><code>x.plot(kind="bar")
  </code></pre>
  
  <p>If I turn of the legend in the plot and try to add it later, then it doesn't retain the colors associated with the two columns in the DataFrame (see below):</p>
  
  <pre><code>x.plot(kind="bar", legend=False)
  l = pl.legend(('Alpha','Beta'), loc='best')
  </code></pre>
  
  <p>What's the right way to include a legend in a matplotlib plot from a Pandas DataFrame?
  <img src="https://i.stack.imgur.com/HOxth.png" alt="enter image description here"></p>