Skip to content

Bar plot does not respect axes.prop_cycle in matplotlib 1.5 #11735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
maxnoe opened this issue Dec 1, 2015 · 2 comments
Closed

Bar plot does not respect axes.prop_cycle in matplotlib 1.5 #11735

maxnoe opened this issue Dec 1, 2015 · 2 comments

Comments

@maxnoe
Copy link

maxnoe commented Dec 1, 2015

Using pandas 0.17.1 with matplotlib 1.5:

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)

Results in

test

Which uses the colors of matplotlibs default style, not of ggplot.

Using matplotlib 1.4.3 the correct colors are used:
result

@rcarneva
Copy link
Contributor

Duplicate of #11614 and fixed by #11865

@TomAugspurger
Copy link
Contributor

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants