python - How to modify the kernel density estimate line in a sns.histplot - Stack Overflow

PHOTO EMBED

Fri Aug 26 2022 01:43:24 GMT+0000 (Coordinated Universal Time)

Saved by @dbitran #python

import seaborn as sns

penguins = sns.load_dataset('penguins')
ax = sns.histplot(data=penguins, x="flipper_length_mm", kde=True,
                  line_kws={'color': 'crimson', 'lw': 5, 'ls': ':'})
content_copyCOPY

WILL NOT CHANGE KDE LINE COLOR

https://stackoverflow.com/questions/69524514/how-to-modify-the-kernel-density-estimate-line-in-a-sns-histplot