Re: correct way to use INTERPOLATE function [message #55978 is a reply to message #55977] |
Fri, 21 September 2007 12:51   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Ryan. writes:
> I'm aware of how to set it. I guess my comment wasn't too clear. I
> meant to say that I get the same result whether I use the INTERP
> keyword or not.
>
> Does your statement work as it is?
No, this is pseudocode. :-)
Try this:
s = [10.3, 9.6, 9.2, 8.5, 7.7, 6.9, 5.8, 5.4, 4.7, 4.1]
l = Findgen(100) * 0.5
P.MULTI=[0,1,2]
Window
Plot, Congrid(s, N_Elements(l))
Plot, Congrid(s, N_Elements(l), /INTERP)
!P.MULTI=0
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.")
|
|
|