dual histogram stumper [message #33297] |
Mon, 16 December 2002 14:13  |
paul wisehart
Messages: 28 Registered: December 2002
|
Junior Member |
|
|
Hi<
I have 2 histograms ... A and B
A=histogram(a) B=histogram(b)
they have same xrange, but different yrange.
I have the ratio of the n_elements(a)/n_elements(b)
NOW, I want to plot them on top of each other so they
are normalized.
AND, the left y-axis shows A's range,
the right axis shows B's range.
I can achieve most of the objectives if I :
(1) plot A
(2) normalize B
(3) oplot B
the problem is this leaves out B's y-axis.
instead of normalizing B , I want to normalize B's plot.
possible??
paul wisehart
wisehart@runbox.com
|
|
|
Re: dual histogram stumper [message #33331 is a reply to message #33297] |
Wed, 18 December 2002 14:00   |
jeyadev
Messages: 78 Registered: February 1995
|
Member |
|
|
In article <MPG.1869c016ee279e93989a78@news.frii.com>,
David Fanning <david@dfanning.com> wrote:
> Rick Towler (rtowler@u.washington.edu) writes:
>
>> There isn't an up to date FAQ for the group but David's site is the next
>> best thing. It is best to bookmark David's site and check there before
>> posting since the answer can usually be found within his helpful pages.
>> There is so much goodness there even he forgets some of it ( but that may be
>> due to age ;)
>>
>> http://www.dfanning.com/tips/histogram_tutorial.html
Thanks. I did try to look up the manuals for IDL at the RSI site,
but I could not find them. That was the first port of call. Then,
I went back to David's book (yeah, verily, I have it!), but did
not find the answer. Then I decided to fire an email to David.
There was no reply and hence the reason for going public.
> Anyway, I wasn't ignoring Surendar's question. Just waiting
> for JD to step in to explain it before I made a mess of it.
> Briefly, the REVERSE_INDICES keyword is the way to get back the
> pixel indices of the pixels in each bin. Sort of like the WHERE
> function, although much, MUCH faster. In fact, REVERSE_INDICES
> contains the magic in much of the HISTOGRAM command.
Thanks.
> And Rick is right, if you really want to understand the
> details, the only place to do so is JD's fabulous (and
> famous) Histogram Tutorial.
>
> http://www.dfanning.com/tips/histogram_tutorial.html
>
> If you really can't find such a thing in the PV-Wave version
> of HISTOGRAM, then this really is going to be a Bah Humbug
> kind of a year. :-(
And thanks, again. I guess I should now look up the sites
for not just the quirky bits and for the nooks and crannies
of the features, but for straightforward documentation as
well!
--
Surendar Jeyadev jeyadev@wrc.xerox.bounceback.com
Remove 'bounceback' for email address
|
|
|
|
Re: dual histogram stumper [message #33341 is a reply to message #33297] |
Wed, 18 December 2002 11:55  |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
"David Fanning" <david@dfanning.com> wrote
> Rick Towler (rtowler@u.washington.edu) writes:
>
>> There isn't an up to date FAQ for the group but David's site is the next
>> best thing. It is best to bookmark David's site and check there before
>> posting since the answer can usually be found within his helpful pages.
>> There is so much goodness there even he forgets some of it ( but that
may be
>> due to age ;)
>>
>> http://www.dfanning.com/tips/histogram_tutorial.html
>
> Now hold on there. This is suppose to be the season
> of light, but this week the doctor ordered me not to
> play tennis (or ski) for a month to allow a wrist injury
> to heal, and now I'm accused of getting old. I don't see
> much light in that. :-(
You are right.
Anyway, from those pictures I saw from the last IDL EPA meeting you sure
don't *act* old. :)
-Rick
|
|
|
Re: dual histogram stumper [message #33363 is a reply to message #33297] |
Tue, 17 December 2002 22:14  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Rick Towler (rtowler@u.washington.edu) writes:
> There isn't an up to date FAQ for the group but David's site is the next
> best thing. It is best to bookmark David's site and check there before
> posting since the answer can usually be found within his helpful pages.
> There is so much goodness there even he forgets some of it ( but that may be
> due to age ;)
>
> http://www.dfanning.com/tips/histogram_tutorial.html
Now hold on there. This is suppose to be the season
of light, but this week the doctor ordered me not to
play tennis (or ski) for a month to allow a wrist injury
to heal, and now I'm accused of getting old. I don't see
much light in that. :-(
(Not to mention my friend, Diego, is back in town for
the holidays, ready to resume our epic battle, which--
when we left off last time--had him in the lead 21 sets
to 20, with Diego winning the decisive set 18-16 in a
third set tie-breaker on an offensive lob, for goodness
sake. Oh, woe is me! I still have nightmares of that
ball floating gently over my head.)
Anyway, I wasn't ignoring Surendar's question. Just waiting
for JD to step in to explain it before I made a mess of it.
Briefly, the REVERSE_INDICES keyword is the way to get back the
pixel indices of the pixels in each bin. Sort of like the WHERE
function, although much, MUCH faster. In fact, REVERSE_INDICES
contains the magic in much of the HISTOGRAM command.
And Rick is right, if you really want to understand the
details, the only place to do so is JD's fabulous (and
famous) Histogram Tutorial.
http://www.dfanning.com/tips/histogram_tutorial.html
If you really can't find such a thing in the PV-Wave version
of HISTOGRAM, then this really is going to be a Bah Humbug
kind of a year. :-(
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: dual histogram stumper [message #33365 is a reply to message #33297] |
Tue, 17 December 2002 20:07  |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
"Surendar Jeyadev" <jeyadev@wrc.xerox.bounceback.com> wrote
> David,
>
> Just a nudge to your memory. Still waiting for the answer to my question.
> What does the REVERSE keyword to the HISTOGRAM call do in IDL? Us poor
> folks stuck with Wave cannot use that excellent procedure you posted
> re set intersections as it is :-(
>
There isn't an up to date FAQ for the group but David's site is the next
best thing. It is best to bookmark David's site and check there before
posting since the answer can usually be found within his helpful pages.
There is so much goodness there even he forgets some of it ( but that may be
due to age ;)
http://www.dfanning.com/tips/histogram_tutorial.html
-Rick
|
|
|