title: AttributeError: 'Rectangle' object has no property 'norm_hist' - python
body: <p>I am reviewing the matpoltlib and seaborn packages. I know this question is a little below the level of stack but no one can give me a solid answer about this error. I am using displot to make histograms and the notes are trying to show the difference between it displaying w/ count vs. density. Using the &quot;iris&quot; dataset w/in seaborn the first example is:</p>
  <pre><code>[IN]: sns.displot(iris[&quot;sepal_length&quot;], kde=False) 
  [OUT]: histogram, no curve, count on the y-axis
  </code></pre>
  <p>The next example uses &quot;norm_hist&quot; and is supposed to change the counts to densities and I am getting an error I don't understand?</p>
  <pre><code>[IN]: sns.displot(iris[&quot;sepal_length&quot;], norm_hist=True, kde=False)
  [OUT]: Traceback (most recent call last):
  
    File &quot;C:\Users\cyrra\OneDrive\Documents\HDS 802 - Programming in Healthcare (Python &amp; R)\Module 7 Python\M7P - MINE.py&quot;, line 79, in &lt;module&gt;
      sns.displot(iris[&quot;sepal_length&quot;], norm_hist=True, kde=False)
  
    File &quot;C:\Users\cyrra\anaconda3\lib\site-packages\seaborn\distributions.py&quot;, line 2227, in displot
      p.plot_univariate_histogram(**hist_kws)
  
    File &quot;C:\Users\cyrra\anaconda3\lib\site-packages\seaborn\distributions.py&quot;, line 555, in plot_univariate_histogram
      artists = plot_func(
  
    File &quot;C:\Users\cyrra\anaconda3\lib\site-packages\matplotlib\__init__.py&quot;, line 1438, in inner
      return func(ax, *map(sanitize_sequence, args), **kwargs)
  
    File &quot;C:\Users\cyrra\anaconda3\lib\site-packages\matplotlib\axes\_axes.py&quot;, line 2488, in bar
      r.update(kwargs)
  
    File &quot;C:\Users\cyrra\anaconda3\lib\site-packages\matplotlib\artist.py&quot;, line 996, in update
      raise AttributeError(f&quot;{type(self).__name__!r} object &quot;
  
  AttributeError: 'Rectangle' object has no property 'norm_hist'
  </code></pre>
  <p>Can someone explain this to me? I am looking through the documentation for seaborn and I can't seem to find these options. Were they deprecated? Unfortunately the material provided for my python class in my MS is from 2017 and they won't update it.</p>
  <p>Thank you</p>