Hello Radovan,
> 1. I was working in Windows 2000, Maxima 5.9.12 and wxMaxima (great
> environment!!!) exploring Maxima help.
> When reproducing Interpolate Examples (Contents=>interpol) the command
>
> plot2d([f(x),[discrete,p]],[x,0,10],
> [gnuplot_curve_styles,
> ["with lines","with points pointsize 3"]])$
>
> will not give LINE for f(x) and POINTS for list of data pairs p but TWO
> LINES (no points).
> When I put the command say (explained in Contents=>Plotting)
>
> plot2d([f(x),[discrete,p]],[x,0,10], [style,
> [lines,1,1],[points,5,3,6]],[legend,"line","points"]);
>
> I will get as expected (line and points). I might miss something
> concerning Maxima and gnuplot.
> Moreover, I could not figure out how to plot lines and points on the
> same plot using Plot2d... from within wxMaxima.
> I do not know what to put under "Options" in "Plot2d..."
>
>
There were some changes in plot2d that make this function incompatible
with the examples of the interpol package. This is fixed in Maxima 5.13,
since plotting examples in interpol package are now made with function
draw.
(%i2) load(interpol)$
(%i3) load(draw)$
(%i4) p:[[7,2],[8,2],[1,5],[3,2],[6,7]]$
(%i5) f(x):=''lagrange(p)$
(%i6) draw2d(
color = red,
key = "Lagrange polynomial",
explicit(f(x),x,0,10),
point_size = 3,
color = blue,
key = "Sample points",
points(p))$
To plot isolated points and points joined by lines with draw2d, see
examples typing:
? points
--
Mario Rodriguez Riotorto
www.biomates.net