Previous: XYPlot Attributes, Up: XYPlot Object [Contents][Index]
The interpolation routine is public and can be used in the application program
int fl_interpolate(const float *inx, const float *iny, int num_in,
float *outx, float *outy, double grid, int ndeg);
If successful, the function returns the number of points in the
interpolated function ((inx[num_in - 1] - inx[0]) / grid +
1.01), otherwise it returns -1. Upon return, outx and
outy are set to the interpolated values. The caller must
allocate the storage for outx and outy.
See xyplotall.c and xyplotactive.c for examples of the
use of XYPlot objects. There is also an example program called
xyplotover.c, which shows the use of overlays. In addition,
xyplotall.c shows a way of getting all mouse clicks without
necessarily using an active XYPlot.
It is possible to generate a PostScript output of an XYPlot. See the
function fl_object_ps_dump() documented in Part V.