This is currently not possible since gnuplot it restarted everytime
you enter a plot command. What you can do is build a list of curves in
you do-loop and when the loop finishes plot the list of curves:
(%i3) f(n) := block(
[curves : [], i],
for i:1 thru n do curves : cons(x^i, curves),
plot2d(curves, [x,-1,1])
)$
(%i4) f(3);
On 9/21/06, Johan Ekh <ekh.johan at gmail.com> wrote:
> Hello all,
> how can I plot several curves in the same plot.
> I'd like to switch on "hold on" so that gnuplot
> plots every new curve in the same window as I
> go through a do-loop.
>
> Thanks,
> Johan
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>
>