2

I´m working with some plots on seaborn and getting the wrong colors, E.G.

For this plot intead of red, I´m getting a pink plot:

sns.distplot(df.X.sample(10), bins=25, norm_hist=False,kde=False,color="Red")  

enter image description here

This in the only configuration I made:

sns.set()
sns.set_style("whitegrid")
Luis Ramon Ramirez Rodriguez
  • 9,591
  • 27
  • 102
  • 181

1 Answers1

4

By default, distplot sets the alpha of the histograms to be 0.4. To get your opaque histogram, you could instead do

sns.distplot(df.X.sample(10), bins=25, norm_hist=False,kde=False,color="Red",hist_kws={'alpha': 1})
asongtoruin
  • 9,794
  • 3
  • 36
  • 47