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

Home » Public Forums » archive » Histogram
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: HISTOGRAM [message #82940 is a reply to message #44556] Wed, 23 January 2013 05:06 Go to previous messageGo to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Wednesday, January 23, 2013 3:44:27 AM UTC-8, Helder wrote:
> On Wednesday, January 23, 2013 12:12:54 PM UTC+1, dave poreh wrote:
>
>> Folks,
>
>>
>
>> HI,
>
>>
>
>> I am trying to plot:
>
>>
>
>> IDL> hist = HISTOGRAM(x(2,*),MIN = -400, MAX =100, BINSIZE = 4)
>
>>
>
>> % Program caused arithmetic error: Floating illegal operand
>
>>
>
>> Turns out, with cg's everything is ok.
>
>>
>
>> Can you please help me?
>
>>
>
>> Cheers,
>
>>
>
>> Dave
>
>
>
> I'm not a histogram expert, but I had problems for badly defined BINSIZEs.
>
> If you read cgHistoplot help/definition of binsize you will find:
>
> "I've tried to protect you from most of the bad things"
>
> And:
>
> "While it is pointed out in the HISTOGRAM documentation, it is extremely important that the BINSIZE be of the same data type as the data you are going to calculate the histogram of."
>
>
>
> You put in binsize 4. Are your data integers? If not you might have a look at that...
>
>
>
> Cheers,
>
> Helder

Thanks Helder,
It was data type problem, and now working:)
Cheers,
Dave
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: convolution of vsini
Next Topic: Reading CDF files on a Mac

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

Current Time: Thu Oct 09 23:00:10 PDT 2025

Total time taken to generate the page: 0.47710 seconds