comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: isodensity contours
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: isodensity contours [message #75281 is a reply to message #75273] Wed, 23 February 2011 11:12 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Feb 23, 1:24 pm, Gray <grayliketheco...@gmail.com> wrote:
> Hi all,
>
> I have a scatterplot with a bunch of points on it.  I'd like to plot
> isodensity contours to include 99%, 90%, 75%, and 50% of my points.
> How do I set up my data to give to cgContour?  Thanks!
>
> --Gray

If I understand this correctly, you have two arrays
x and y of coordinates of N points.

To contour them, you need first to create a
density array from your dataset - basically
you divide the xrange and yrange of your data
in a number of bins and the density array will
tell you how many points lie in each bin.

Then you can use the normal contour procedures.

So how you do partition the data into the density
array? hist_2d will do that for you.

Ciao,
Paolo
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PropertySheet COLOR property
Next Topic: isodensity contours

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:27:03 PDT 2025

Total time taken to generate the page: 0.00426 seconds