<p dir="auto">Using pandas 0.17.1 with matplotlib 1.5:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
import matplotlib.pyplot as plt
plt.style.use('ggplot')

data = pd.DataFrame({'1': [1, 2, 3], '2': [3, 5, 1]})

data.plot(kind='bar')
plt.savefig('test.png', dpi=300)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-s1">plt</span>.<span class="pl-s1">style</span>.<span class="pl-en">use</span>(<span class="pl-s">'ggplot'</span>)

<span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'1'</span>: [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], <span class="pl-s">'2'</span>: [<span class="pl-c1">3</span>, <span class="pl-c1">5</span>, <span class="pl-c1">1</span>]})

<span class="pl-s1">data</span>.<span class="pl-en">plot</span>(<span class="pl-s1">kind</span><span class="pl-c1">=</span><span class="pl-s">'bar'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'test.png'</span>, <span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-c1">300</span>)</pre></div>
<p dir="auto">Results in</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5488440/11506494/0328c792-9850-11e5-97ec-044a8ec2183f.png"><img src="https://cloud.githubusercontent.com/assets/5488440/11506494/0328c792-9850-11e5-97ec-044a8ec2183f.png" alt="test" style="max-width: 100%;"></a></p>
<p dir="auto">Which uses the colors of matplotlibs default style, not of <code class="notranslate">ggplot</code>.</p>
<p dir="auto">Using matplotlib 1.4.3 the correct colors are used:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5488440/11506670/e40350c0-9850-11e5-9495-83185673a54e.png"><img src="https://cloud.githubusercontent.com/assets/5488440/11506670/e40350c0-9850-11e5-9495-83185673a54e.png" alt="result" style="max-width: 100%;"></a></p>
<p dir="auto">Hi there,</p>
<p dir="auto">I'm not sure if this is a pandas/matplotlib or seaborn issue...but since I upgraded to Matplotlib 1.5 using anaconda I can't get the colors of my barplots right anymore, here's an example:</p>
<p dir="auto">In ipython notebook:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd

%matplotlib inline

import seaborn as sns
sns.set_style('whitegrid')

# Works, color as expected in nice muted blue
pd.DataFrame([1,2,3,4,5,6]).plot(linewidth=10)


# Doesn't work, getting matplotlib &quot;eye-cancer-blue&quot;
pd.DataFrame([1,2,3,4,5,6]).plot(kind='bar')"><pre class="notranslate"><code class="notranslate">import pandas as pd

%matplotlib inline

import seaborn as sns
sns.set_style('whitegrid')

# Works, color as expected in nice muted blue
pd.DataFrame([1,2,3,4,5,6]).plot(linewidth=10)


# Doesn't work, getting matplotlib "eye-cancer-blue"
pd.DataFrame([1,2,3,4,5,6]).plot(kind='bar')
</code></pre></div>
<p dir="auto">I attached a screenshot one with matplotlib 1.4.x and one with 1.5:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10881376/11185937/8f124a62-8c7f-11e5-9d8f-56991ffdc798.png"><img src="https://cloud.githubusercontent.com/assets/10881376/11185937/8f124a62-8c7f-11e5-9d8f-56991ffdc798.png" alt="matplotlib_15" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10881376/11185936/8f11b7c8-8c7f-11e5-8773-8dceaea7bd76.png"><img src="https://cloud.githubusercontent.com/assets/10881376/11185936/8f11b7c8-8c7f-11e5-8773-8dceaea7bd76.png" alt="matplotlib_14" style="max-width: 100%;"></a></p>
<p dir="auto">Again I know this might well not be a pandas issue but maybe someone has an idea where the problem might be.</p>