<p dir="auto">While creating a distplot on 'Tips' dataset on 'Total_Bills' column the Y axis values in the chart appear in decimal while I am expecting it to provide the counts.</p>
<p dir="auto">I am using the following code:</p>
<p dir="auto"><code class="notranslate">import seaborn as sns %matplotlib inline tips = sns.load_dataset('tips') sns.distplot(tips['total_bill'],bins=10,norm_hist=False)</code></p>
<p dir="auto">which gives following output:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/33238033/77960555-3a28f100-7324-11ea-9f74-68af6e1c930f.PNG"><img src="https://user-images.githubusercontent.com/33238033/77960555-3a28f100-7324-11ea-9f74-68af6e1c930f.PNG" alt="New_Book_Same_Cell" style="max-width: 100%;"></a></p>
<p dir="auto">while I am expecting the y axis to show the values as per below.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/33238033/77960814-a146a580-7324-11ea-8f2f-e96a9104f3c3.PNG"><img src="https://user-images.githubusercontent.com/33238033/77960814-a146a580-7324-11ea-8f2f-e96a9104f3c3.PNG" alt="Expected Output" style="max-width: 100%;"></a></p>
<p dir="auto">Following Troubleshooting steps were performed:</p>
<ol dir="auto">
<li>Restart Kernel and Run All Cells</li>
<li>Copy the entire code in One Cell</li>
<li>Open a new Jupyter Notebook to wrote the code again.</li>
<li>Explicitly mentioned norm_hist = False in the argument</li>
</ol>
<p dir="auto">But none of these work. Why by default does it show values like 0.01, 0.02, 0.03 .... 0.06 on the y-axis?</p>
<p dir="auto">Hi all,</p>
<p dir="auto">(first of all: awesome library, I love it)</p>
<p dir="auto">I am wondering about the default behavior of <code class="notranslate">distplot</code> when <code class="notranslate">norm_hist</code> is <code class="notranslate">False</code>.</p>
<p dir="auto">At least on 0.8.0, when</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="sns.distplot(x, norm_hist=False)"><pre class="notranslate"><span class="pl-s1">sns</span>.<span class="pl-en">distplot</span>(<span class="pl-s1">x</span>, <span class="pl-s1">norm_hist</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)</pre></div>
<p dir="auto">produces a figure that is 1) normalized and 2) still has the KDE, which is a bit of a gotcha (<em>i.e.</em> unless you carefully read the docs for <code class="notranslate">norm_hist</code> and <code class="notranslate">kde</code> and infer if <code class="notranslate">kde</code> is default-True, and it might override <code class="notranslate">norm_hist=False</code>.</p>
<p dir="auto">If you run:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="sns.distplot(x, norm_hist=False, kde=False)"><pre class="notranslate"><span class="pl-s1">sns</span>.<span class="pl-en">distplot</span>(<span class="pl-s1">x</span>, <span class="pl-s1">norm_hist</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">kde</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)</pre></div>
<p dir="auto">This will give you an unnormed, <em>sans</em>-KDE distribution.</p>
<p dir="auto">Which itself is a little disappointing since the KDE is actually super nice for understanding the structure of the data.</p>
<p dir="auto">I can think of two potential ways to address this mild annoyance:</p>
<ol dir="auto">
<li>default <code class="notranslate">kde=None</code> and have it infer if it should compute a KDE from the value of <code class="notranslate">norm_hist</code>, or</li>
<li>if <code class="notranslate">norm_hist=False</code>, compute the KDE of the normalized figure, but then multiply it by the integration value of the distribution to put it on the plot. (I am not a statistician, so this seems fine to me, but perhaps isn't kosher for some reason?)</li>
</ol>
<p dir="auto">I'd be open to doing this myself (esp 2), as long as I know you'll accept the PR 😅 .</p>
<p dir="auto">Cheers!</p>