I'm trying to plot a distribution with distplot(), and I want
I thought that (1) could be achieved by setting norm_hist=False
, but still, relative frequencies are shown on the y axis:
But no problem, I can work around that by directly setting the 'normed' keyword of the underlying pyplot.hist graph:
However, now I have the problem that the fitted function (created with pyplot.plot) still works on the normalized values and thus is somewhere on the bottom of the graph. I would like to completely get rid of the fitted plot. How do I do that? I thought setting fit=None
would do the trick, but as you can see, it doesn't.
Any help is appreciated!
Lukas
The line you call "fit" is a kernel density estimate (KDE), it only makes sense for a normalized plot (as it is a probability density function).
To get rid of the kde curve, you may use the kde=False
keyword argument.
distplot( ... , kde=False)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With