![](https://secure.gravatar.com/avatar/fa3a731da1628d4fdf8971b7b3b5ba4d.jpg?s=120&d=mm&r=g)
Hi, Can anyone let me know how to make a density plot, more specifically a gaussian-smoothed version of a histogram? I mean, it's not the plot itself, but to get the maximum count (or highest peak) of the density distribution. In S plus and R, there is the "density" function which I can use to get the max x and y in the probability frequency distribution. I was told that, in scipy, there is a kernel density estimator for non-parametric density estimation, and fit the "Gaussian smoothed version of the histogram" when used with Gaussian kernels. So far I haven't suceeded finding the function. I really appreciate if anyone can help in any way! thank you!
![](https://secure.gravatar.com/avatar/afdaaab755ef79ac9e1374882d60ae9f.jpg?s=120&d=mm&r=g)
I use scipy.stats.kde.gaussian_kde for similar purposes. Zach On Dec 11, 2008, at 1:00 PM, Yuni Kim wrote:
Hi,
Can anyone let me know how to make a density plot, more specifically a gaussian-smoothed version of a histogram? I mean, it's not the plot itself, but to get the maximum count (or highest peak) of the density distribution.
In S plus and R, there is the "density" function which I can use to get the max x and y in the probability frequency distribution.
I was told that, in scipy, there is a kernel density estimator for non-parametric density estimation, and fit the "Gaussian smoothed version of the histogram" when used with Gaussian kernels. So far I haven't suceeded finding the function.
I really appreciate if anyone can help in any way!
thank you!
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
participants (2)
-
Yuni Kim
-
Zachary Pincus