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

Home » Public Forums » archive » Re: Fit a Gaussian to a Histogram Plot
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: Fit a Gaussian to a Histogram Plot [message #67229] Tue, 21 July 2009 00:07
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
On Jul 20, 2:27 pm, David Fanning <n...@dfanning.com> wrote:
> Maarten writes:
>> I have another one for you: how can I use histoplot to plot a
>> histogram?
>
>> Confused? Let me explain: If I use the histogram function to create a
>> histogram of data from many files (say a seasonal average of a
>> quantity measured from a satellite), and then would like to use
>> histoplot to show the result, then I'm currently out of luck, right?
>
> Currently, yes. But who knows. I can see this being
> useful in my own work. In fact, I've already solved this
> problem in my own work (using Histplot as the example),
> but just not in a way that would be useful to
> everyone.
>
> It's a busy week, what with work, a big tennis tournament
> that has me playing nearly every evening, my wife gone to
> take care of her brother, etc. But, I'll see if I can come
> up with something. :-)

No worries. I've hacked your code far enough to be usable for this to
me, but it is far from robust or elegant. I guess our solutions are
similar, and assume well behaved users. We all know that those are few
and far between.

Enjoy the tennis,

Maarten
Re: Fit a Gaussian to a Histogram Plot [message #67239 is a reply to message #67229] Mon, 20 July 2009 05:27 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Maarten writes:

> I have another one for you: how can I use histoplot to plot a
> histogram?
>
> Confused? Let me explain: If I use the histogram function to create a
> histogram of data from many files (say a seasonal average of a
> quantity measured from a satellite), and then would like to use
> histoplot to show the result, then I'm currently out of luck, right?

Currently, yes. But who knows. I can see this being
useful in my own work. In fact, I've already solved this
problem in my own work (using Histplot as the example),
but just not in a way that would be useful to
everyone.

It's a busy week, what with work, a big tennis tournament
that has me playing nearly every evening, my wife gone to
take care of her brother, etc. But, I'll see if I can come
up with something. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Fit a Gaussian to a Histogram Plot [message #67243 is a reply to message #67239] Mon, 20 July 2009 00:52 Go to previous message
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
On Jul 19, 12:20 am, David Fanning <n...@dfanning.com> wrote:
> Folks,
>
> Someone asked me this weekend how to fit a Gaussian
> to the output of the Coyote Library routine Histoplot.
> Good question.
>
> I was surprised to learn (well, "shocked" might be a better
> word) that the author of Histoplot had already anticipated
> the need for this functionality, and had provided the
> appropriate output keywords to make this possible.

I have another one for you: how can I use histoplot to plot a
histogram?

Confused? Let me explain: If I use the histogram function to create a
histogram of data from many files (say a seasonal average of a
quantity measured from a satellite), and then would like to use
histoplot to show the result, then I'm currently out of luck, right?

Best,

Maarten
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLgrROI bug
Next Topic: Re: Update PostScript

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

Current Time: Wed Oct 08 11:39:44 PDT 2025

Total time taken to generate the page: 0.00595 seconds