density plot

David Cournapeau cournape at
Thu Dec 11 08:56:14 CET 2008

On Thu, Dec 11, 2008 at 1:57 PM,  <yuniyuni21 at> wrote:
> Hi,
> Does anyone know how to make the density plot, more specifically a
> gaussian-smoothed version of a histogram.  Actually, it's not exactly
> a plot that I want.  What I want to do is get the maximum count (or
> highest peak) of the density distribution.  It's different from the
> probability density function that has the center at zero.
> In S plus and R, there is the "density" function which I can use to
> get the max x and  y in the frequency distribution.

scipy ML is more appropriate for this kind of questions:

In scipy, there is a kernel density estimator, which is one popular
method for non-parametric density estimation, and fit exactly the
"Gaussian smoothed version of the histogram" when used with Gaussian


More information about the Python-list mailing list