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

Home » Public Forums » archive » Finding peak with cgHistoplot and bin confusion
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Finding peak with cgHistoplot and bin confusion [message #87111] Wed, 08 January 2014 05:39 Go to previous message
rjp23 is currently offline  rjp23
Messages: 97
Registered: June 2010
Member
I'm using cgHistoplot with the binsize value set like so:

cgHistoplot, data, binsize=100, xrange=[0, 8000]

Is there a simple way to find the x value where the histogram peaks?

I thought using the histdata keyword would have worked and then something like find=where(histdata EQ max(histdata)).

The problem though is then knowing which bin that subscript refers to. I assumed because I specify xrange starting from 0 then my first bin would be 0-99. However, if I use the omin keyword it returns a value of 698.045. Does that mean by first bin is 600-699? or 698.045-797.045?

Cheers
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Missing value and Image size in Image, Function Graphic
Next Topic: Thickness of Errorbar

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

Current Time: Wed Oct 08 18:24:01 PDT 2025

Total time taken to generate the page: 0.02972 seconds