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

Home » Public Forums » archive » Create smooth lines in IDL
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: Create smooth lines in IDL [message #68867 is a reply to message #68722] Sun, 22 November 2009 17:36 Go to previous message
ben.bighair is currently offline  ben.bighair
Messages: 221
Registered: April 2007
Senior Member
On Nov 22, 2:39 pm, "chenb...@gmail.com" <chenb...@gmail.com> wrote:
> Hello everyone,
>
>   Does anyone have a routine in IDL to create smooth line using given
> vertexes?
>
>   Have a nice weekend!
>
> Bo

Hi,

Take a peek at the built-in SPLINE function.

You can see an example (copied below) in the docs, but adding plot
seals the deal.
X = [2.,3.,4.]
Y = (X-3)^2
T = FINDGEN(20)/10.+2
Z = SPLINE(X,Y,T)
PLOT, X,Y
PLOTS, T,Z, PSYM = -6

Cheers,
Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Philips MRI to DICOM converter
Next Topic: Re: ENVI's codes

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

Current Time: Wed Oct 08 16:21:23 PDT 2025

Total time taken to generate the page: 0.00418 seconds