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

Home » Public Forums » archive » histogram function question
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 function question [message #90520 is a reply to message #90517] Fri, 06 March 2015 06:26 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dae-Kyu Shin writes:

>
> hi
>
> here is a example code
>
>
> data = [0, 0.3, 1.3d]
> h1 = HISTOGRAM(data, nbin=3, min=0, max=1, loc=loc1)
> h2 = HISTOGRAM(data, binsize=0.5d, min=0, max=1, loc=loc2)
>
> print, h1
> print, h2
>
> h1 = 2 0 1
> h2 = 2 0 0
>
>
> h1 and h2 is not equal!!
> is it correct??

I don't think so:

IDL> data = [0, 0.3, 1.3d]
IDL> h1 = cghistogram(data, nbin=3, min=0.0, max=1.0 ,loc=loc1)
IDL> h2 = cghistogram(data, binsize=0.5d, min=0.0, max=1.0 ,loc=loc2)
IDL> print, h1
2 0 0
IDL> print, h2
2 0 0

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: WIDGET_TABLE and /ALL_EVENTS
Next Topic: map projection

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

Current Time: Wed Oct 08 15:59:53 PDT 2025

Total time taken to generate the page: 0.00340 seconds