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

Home » Public Forums » archive » Re: Problems with '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: Problems with 'HISTOGRAM' [message #15814 is a reply to message #15811] Fri, 11 June 1999 00:00 Go to previous message
mchinand is currently offline  mchinand
Messages: 66
Registered: September 1996
Member
In article <376107F3.DA94ABC5@users.whh.wau.nl>,
Martin Vissers <martin.vissers@users.whh.wau.nl> wrote:
> Dear newsreaders
>
> I have a problem with the IDL fuction histogram.
> I'm running IDL 5.0.3a on windows NT4.0 (sp5)
>
> If I make the following histogram:
>
> aa=histogram(dindgen(330)-180.0d,min=-180.0d,max=180.0d,bins ize=10.0d)
>
> the array aa has 37 elements:
> AA LONG = Array[37]
>
> but it should have 36 elements ??????
>

There are 361 numbers between -180 and 180, inclusive. So 361/binsize=
36.1 which gets rounded up to 37.

--Mike

--
--
Michael Chinander University of Chicago
m-chinander@uchicago.edu (773)702-1446 (Voice) (773)702-0371 (Fax)
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Vertical surfaces
Next Topic: Re: Map Projections and Contour Plots.

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

Current Time: Wed Apr 29 17:01:29 PDT 2026

Total time taken to generate the page: 3.35774 seconds