[SciPy-user] KDE question
Gael Varoquaux
gael.varoquaux@normalesup....
Sat Nov 10 04:24:45 CST 2007
On Fri, Nov 09, 2007 at 02:34:11PM -0500, Zachary Pincus wrote:
> I'm using scipy.stats.gaussian_kde to estimate the a probability
> density based on some scattered 2D samples. What I would like to do
> eventually is plot a line that surrounds (say) 90% of the probability
> density.
If its only plotting you are interested in, matplotlib can do all the
dirty work for you, using the "contour" command:
http://matplotlib.sourceforge.net/screenshots/pcolor_demo.py
which yields:
http://matplotlib.sourceforge.net/screenshots/pcolor_demo_large.png
HTH,
Gaël
More information about the SciPy-user
mailing list