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

Home » Public Forums » archive » Re: hist_2d, contour
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: hist_2d, contour [message #66573 is a reply to message #66572] Wed, 27 May 2009 05:39 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Nicolas Aunai writes:

> so the help is wrong ? :-)

Not wrong so much as, well, let's just say a jokester.
I think it was written by a cousin of Coyote's. :-)

> last question :
>
> should I do :
>
> eci = MIN(ec(*,0)) + bin*lindgen(ceil((max(ec(*,0))-min(ec(*,0)))/bin))
>
> or
>
>
> eci = MIN(ec(*,0)) + bin*lindgen(1+(max(ec(*,0))-min(ec(*,0)))/bin)

I don't know. I always use Scale_Vector for this:

dist = Hist_2d(xdata, ydata...)
s = Size(dist, /DIMENSIONS)
x = Scale_Vector(Indgen(s[0]), Min(xdata), Max(xdata))
y = Scale_Vector(Indgen(s[1]), Min(ydata), Max(ydata))

Scale_Vector is a Coyote Library file.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: hist_2d, contour
Next Topic: Re: ROTATE MODEL

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

Current Time: Sat Oct 18 08:59:50 PDT 2025

Total time taken to generate the page: 2.32396 seconds