'How to plot legends in kde plot of seaborn as shown in the picture

I have searched everywhere, but cant able to find the solution.

I am plotting like this:

sns.kdeplot(data = df, x = 'PE', hue = 'cond', fill = True, legend=True)

MY plot

But I want the legend like this Kde plot like this (image link)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source