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

Home » Public Forums » archive » Re: histograms in 2D
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: histograms in 2D [message #45370] Sun, 04 September 2005 19:04
Tim Lamont-Smith is currently offline  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 Go to previous message
Michael Wallace is currently offline  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 Go to previous message
David Fanning is currently offline  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/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Any code to interface IDL to R ?
Next Topic: constraining parameters in multi-Gaussian 1D fitting

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

Current Time: Sat Oct 11 12:19:43 PDT 2025

Total time taken to generate the page: 0.88444 seconds