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 #82943 is a reply to message #44556] Wed, 23 January 2013 03:44 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
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
[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: Wed Oct 08 18:24:33 PDT 2025

Total time taken to generate the page: 0.00224 seconds