0

I have two problems.

First I want to change the blue of 'column_B' to light gray (code: #e9e9e9).

Second, I want to delete the Price section of the label that appears due to the size option.

sns.scatterplot(x = "Column_A", 
            y = "Column_C", 
            hue = 'Column_B',
            size = 'price',
            sizes=(50, 500),
            data = df)

I want this result...

expected result image!!

R Walser
  • 330
  • 3
  • 16
jay Kim
  • 3
  • 2
  • From here https://seaborn.pydata.org/generated/seaborn.scatterplot.html, giving the `palette` keyword a list of 3 colors will change the colors into what you want. Using `legend = 'brief'` should remove what you don't want into the legend. – Liris Nov 08 '19 at 14:22
  • To change the color you can use a color map that varies depending on column B. You can follow the example [here](https://stackoverflow.com/questions/12236566/setting-different-color-for-each-series-in-scatter-plot-on-matplotlib). – Joseph Rajchwald Nov 08 '19 at 14:23
  • @Liris I tried your 'legend option' guide, but the result was the same. and I'll try the 'palette'~ Thank you. – jay Kim Nov 08 '19 at 14:43
  • @JosephRajchwald Thank you for your attention. I will read the example and try it! ~ – jay Kim Nov 08 '19 at 14:44

0 Answers0