plot/
splineplot.pro
top source splineplot
Plot
splineplot, xcoords, ycoords, nspline=nspline, overplot=overplot, window=window, addcmd=addcmd, _extra=_extra
Plots a 2D spline curve using a set of given coordinates.
Parameters
- xcoords in
Array of x coordinates of curve.
- ycoords in
Array of y coordinates of curve.
Keywords
- nspline in
Number of points to use to draw the curve. Default: 100.
- overplot in
Plots over existing plot.
- window in
Uses the /WINDOW flag for Coyote Graphics.
- addcmd in
Uses the /ADDCMD flag for Coyote Graphics.
- _extra
Examples
This uses GETPTS to select a number of points, and then draws a smooth curve
connecting those points:
GETPTS, x, y
SPLINEPLOT, x, y, /OVERPLOT
Author information
- History:
Written by: Jeremy Bailin, 3 Dec 2010 11 March 2011 Moved to SPLINEPLOT and allowing overplot as an option. Switched to Coyote Graphics.
File attributes
| Modification date: | Fri Mar 11 15:49:45 2011 |
| Lines: | 60 |
![[attach.png]](../idldoc-resources/attach.png)