How to make 3 displots appear in 1 row

28 Views Asked by At

I would like to create a row with 3 plots with seaborn displot, but now they appear one under another. I've tried to use the following code:

f, axes = plt.subplots(ncols=3, figsize=(15, 6))

which worked while using seaborn distplot, but here it only shows empty axes without plots. My code:

sns.displot(df.col1, kde = True, height =3)
sns.displot(df.col2, kde = True, height =3)
sns.displot(df.col3, kde = True, height =3)
0

There are 0 best solutions below