Re: histograms in 2D [message #45370] |
Sun, 04 September 2005 19:04 |
Tim Lamont-Smith
Messages: 5 Registered: August 1999
|
Junior Member |
|
|
Very humble apologies. I now can't even remember why/how I thought
hist_2d didn't work. It can only have been incompetence; that and the
fact it was my birthday. (Old age/senility etc)
Cheers, Tim
|
|
|
Re: histograms in 2D [message #45379 is a reply to message #45370] |
Fri, 02 September 2005 08:34  |
Michael Wallace
Messages: 409 Registered: December 2003
|
Senior Member |
|
|
Tim Lamont-Smith wrote:
> I have some fairly sparse x-y scatter data, which I want to histogram.
> In other words, I want a lego style surface plot where the z-axis shows
> the frequency of the points in each x-y bin. Has anyone written a
> programme to do this before?
> Maybe this is straightforward but hist-2d doesn't seem to be what I'm
> looking for.
How is your data structured? If you only had x/y data points (i.e. a
vector of x values and a vector of y values), hist_2d should do exactly
what you want. So, why does hist_2d not do what you want it to?
-Mike
|
|
|
Re: histograms in 2D [message #45382 is a reply to message #45379] |
Fri, 02 September 2005 03:21  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Tim Lamont-Smith writes:
> I have some fairly sparse x-y scatter data, which I want to histogram.
> In other words, I want a lego style surface plot where the z-axis shows
> the frequency of the points in each x-y bin. Has anyone written a
> programme to do this before?
> Maybe this is straightforward but hist-2d doesn't seem to be what I'm
> looking for.
I guess you have probably tried the LEGO keyword on a SURFACE
command, huh?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|