Skip to content

bar-plots with wrong color using Matplotlib 1.5 #11614

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
marcomayer opened this issue Nov 16, 2015 · 2 comments
Closed

bar-plots with wrong color using Matplotlib 1.5 #11614

marcomayer opened this issue Nov 16, 2015 · 2 comments
Labels
Regression Functionality that used to work in a prior pandas version Visualization plotting
Milestone

Comments

@marcomayer
Copy link

Hi there,

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:

In ipython notebook:

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')

I attached a screenshot one with matplotlib 1.4.x and one with 1.5:

matplotlib_15
matplotlib_14

Again I know this might well not be a pandas issue but maybe someone has an idea where the problem might be.

@TomAugspurger
Copy link
Contributor

probably a pandas issue since plt.bar(df.index, df[0]) gives the correct colors.

@TomAugspurger TomAugspurger added the Visualization plotting label Nov 16, 2015
@TomAugspurger TomAugspurger added this to the 0.17.1 milestone Nov 16, 2015
@TomAugspurger TomAugspurger added Regression Functionality that used to work in a prior pandas version Difficulty Novice labels Nov 16, 2015
@jreback jreback modified the milestones: Next Major Release, 0.17.1 Nov 16, 2015
@amichaut
Copy link

hi,
just to say the issue is still there in 0.17.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Regression Functionality that used to work in a prior pandas version Visualization plotting
Projects
None yet
Development

No branches or pull requests

4 participants