Change the facecolor of boxplot in pandas
<p>I need to change the colors of the boxplot drawn using <code>pandas</code> utility function. I can change most properties using the <code>color</code> argument but can't figure out how to change the <code>facecolor</code> of the box. Someone knows how to do it?</p>

<pre><code>import pandas as pd
import numpy as np
data = np.random.randn(100, 4)
labels = list("ABCD")
df = pd.DataFrame(data, columns=labels)
props = dict(boxes="DarkGreen", whiskers="DarkOrange", medians="DarkBlue", caps="Gray")
df.plot.box(color=props)
</code></pre>

<p>While I still recommend seaborn and raw matplotlib over the plotting interface in pandas, it turns out that you can pass <code>patch_artist=True</code> as a kwarg to <code>df.plot.box</code>, which will pass it as a kwarg to <code>df.plot</code>, which will pass is as a kwarg to <code>matplotlib.Axes.boxplot</code>.</p>

<pre><code>import pandas as pd
import numpy as np
data = np.random.randn(100, 4)
labels = list("ABCD")
df = pd.DataFrame(data, columns=labels)
props = dict(boxes="DarkGreen", whiskers="DarkOrange", medians="DarkBlue", caps="Gray")
df.plot.box(color=props, patch_artist=True)
</code></pre>

<p><a href="http://i.stack.imgur.com/ZicnB.png" rel="nofollow"><img src="http://i.stack.imgur.com/ZicnB.png" alt="enter image description here"></a></p>

python pandas matplotlib boxplot