Function: math[interpolplot] - plots interpolation curve and generating points
Calling Sequence:
interplotplot(LL, options);
interplotplot(LL, x=a .. b, options);
interplotplot(LL, a .. b, options);
Parameters:
LL - a list of lists
x
- any name
a, b
- plot boundaries
options - (optional) plot options
Description:
interpolplot plots the function generated by the list LL (containing the coordinate pairs) along with the points included in LL. See math/interpol for further details.
In the first form, interpolplot automatically determines which plot ranges to use by evaluating LL, i.e. determining the x-range min(split(LL)[1]) .. max(split(LL)[1]) and the y-range min(split(LL)[2]) .. max(split(LL)[2]).
In the second form, the abscissa plot range is determined by the second argument; instead of the name x, any other unassigned name is accepted.
In the third form, the abscissa plot range is determined by the second argument, as well; the name of the indeterminate does not need to be specified.
You may also pass a plot range for the ordinate as a plot option.
You may specify any valid Maple
plot options
. There are two further plot options for the points to be plotted (pass as equations):
symbol - the style for the symbol, either CIRCLE (default), BOX, CROSS, POINT, and DIAMOND.
symbolcolor - color of the symbol, may be any valid
Maple color
, default is navy.
The default symbol is set by the global variable
interpolplotSymbol
at initialization of the package. The default color for the symbol is set by the global variable
interpolplotSymbolColor
.
This function is part of the math package, and so can be used only after performing the command with(math) or with(math, interpolplot).
Examples:
> with(math):
> LL := [[0, 0], [3, 4], [5, 6], [1, 2]]:
> interpolplot(LL);
>
interpolplot(LL, x=-1 .. 6, y=-1 .. 7,
axes=box,
### WARNING: the definition of the type `symbol` has changed'; see help page for details
symbol=DIAMOND,
symbolcolor=black,
color=green);
See Also:
math/interpol .
Version History:
Version 1.0 - April 14, 1998
Version 1.01 - June 16, 1998