I am trying to overlay two seaborn displots. Following this question: How can I overlay two graphs in Seaborn? I did the following:
import matplotlib.pyplot as plt
import seaborn as sns
fig, ax = plt.subplots()
sns.displot(df['x'], stat='density', ax=ax)
sns.displot(other_x_no_df, color='r', kind='kde', ax=ax)
However, this produces three separate plots. (1) an empty plot, (2) the first displot, (3) the second displot.
My question: What is wrong with the code displayed? How do I properly overlay the two displots?