mwaskom / seaborn

Statistical data visualization in Python
https://seaborn.pydata.org
BSD 3-Clause "New" or "Revised" License
12.6k stars 1.93k forks source link

change kde line color in histplot function doesn't work #3787

Closed JiyangChang closed 1 week ago

JiyangChang commented 1 week ago

Hi,

Thanks for the great tools.

I'm trying to change the KDE line color in sns.hisplot() function but it doesn't work.

data = [1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 6, 7]

sns.histplot(data, kde=True, line_kws={'color': 'red'})  

plt.show()

download

mwaskom commented 1 week ago

Duplicate of https://github.com/mwaskom/seaborn/issues/3414