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
Re: Finding peak with cgHistoplot and bin confusion [message #87115 is a reply to message #87113] Wed, 08 January 2014 09:09 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
According to the documentation, xrange is passed to the plot command. You're probably wanting mininput/maxinput, not xrange:

http://www.idlcoyote.com/idldoc/cg/cghistoplot.html

But more to the point, you can always get the locations of the bins through a keyword:
cgHistoplot, data, binsize=100, LOCATIONS=loc, HISTDATA=h

maxHisto = MAX(h, binInd)
print, loc[binInd]

Keep in mind that the locations are the starting point of the bins. You might want to use the center of the bin for reporting purposes.
[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 20:14:14 PDT 2025

Total time taken to generate the page: 0.00437 seconds