title: Emulating deprecated seaborn distplots
body: <p>Seaborn <a href="https://seaborn.pydata.org/generated/seaborn.distplot.html" rel="noreferrer"><code>distplot</code></a> is now deprecated and will be removed in a future version. It is suggested to use <a href="https://seaborn.pydata.org/generated/seaborn.histplot.html" rel="noreferrer"><code>histplot</code></a> (or <a href="https://seaborn.pydata.org/generated/seaborn.displot.html" rel="noreferrer"><code>displot</code></a> as a figure-level plot) as an alternative. But the presets differ between <code>distplot</code> and <code>histplot</code>:</p>
  <pre><code>from matplotlib import pyplot as plt
  import pandas as pd
  import seaborn as sns
  
  x_list = [1, 2, 3, 4, 6, 7, 9, 9, 9, 10]
  df = pd.DataFrame({&quot;X&quot;: x_list, &quot;Y&quot;: range(len(x_list))})
  
  f, (ax_dist, ax_hist) = plt.subplots(2, sharex=True)
  
  sns.distplot(df[&quot;X&quot;], ax=ax_dist)
  ax_dist.set_title(&quot;old distplot&quot;)
  sns.histplot(data=df, x=&quot;X&quot;, ax=ax_hist)
  ax_hist.set_title(&quot;new histplot&quot;)
  
  plt.show()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/sEAMx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sEAMx.png" alt="enter image description here" /></a></p>
  <p>So, how do we have to configure <code>histplot</code> to replicate the output of the deprecated <code>distplot</code>?</p>