util/
vis_spline.pro
includes main-level programCreates a 2-dimensional spline curve through the given x- and y-coordinates.
Examples
A spline curve through some points can easily be computed:
IDL> pts = vis_spline([1, 3, 5], [1, 5, 3])
IDL> plot, findgen(11), /nodata, xstyle=9, ystyle=9
IDL> plots, pts
IDL> .run vis_spline
Other file information
- Todo:
this should break down segments so that the x passed into SPL_INTERP is always monotonically increasing
top vis_spline
result = vis_spline(x, y [, n_points=long] [, _extra=keywords])
Creates a 2-dimensional spline curve through the given x- and y-coordinates.
Return value
fltarr(2, n) or dblarr(2, n)
Parameters
- x in required type=numeric vector
x-coordinates of input points
- y in required type=numeric vector
y-coordinates of input points
Keywords
- n_points in optional type=long default=20L
number of points in output
- _extra in optional type=keywords
keywords to SPLINE_P
File attributes
Modification date: | Mon Nov 29 18:32:44 2010 |
Lines: | 79 |
Docformat: | rst rst |