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 #66572] Wed, 27 May 2009 05:58 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> 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))

Yikes, should be "Findgen", not "Indgen"!

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: Sun Oct 12 05:08:36 PDT 2025

Total time taken to generate the page: 0.40328 seconds