'Curve the Kernel Density Estimate (KDE) in seaborn displot
When I try to plot my data in the form of histogram using seaborn displot:
plot = sns.displot(
data=z, kde=True, kind="hist", bins=3000, legend=True, aspect=1.8
).set(title='Error Distribution')
The curve for KDE is plotted in the form of straight lines instead of curves like here:
Is there a way to make the KDE lines cover all the bins of the histogram in a curved manner?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
