Hi Mario, thanks for the help!
On Fri, 2008-09-12 at 23:11 +0200, Mario Rodriguez wrote:
> Can you send the error messages, please? I don't see any.
(%i1) f:%e^(-x)*sin(x)$
load(draw)$
movie(n):=
for k:1 thru n step 1 do
(draw2d(
color = blue,
line_width = 3,
explicit(f,x,-1,5),
color = red,
line_width = 1,
explicit(taylor(f,x,0,k),x,-1,5),
xrange = [-1,5],
yrange = [-1,2],
title = sconcat("\"",taylor(f,x,0,k),"\"")))$
movie(11);
gnuplot> lc rgb 'red'
^
"/home/bob/maxout.gnuplot", line 21: invalid command
repeat
(%o4) done
Errors like the above repeat, the number tends to vary from execution to
execution (perhaps due to the interface with texmacs?) and they are not
all the same.
gnuplot> 'red'
gnuplot> b 'red'
gnuplot> 1 lc rgb 'red'
gnuplot> rgb 'red'
are example of other first lines in the error message.
> > delay = 300 did not help. The animated gif worked nicely with the delay
> > and from the documentation I am guessing that the delay will not work
> > with the screen animation.
>
> True. If you want to introduce some delay in the screen animation, you
> can add an internal loop like
>
> for k:0 while k<1000 do k: k+1;
>
> It's not very nice, but it works.
I thought that might be the case but had not tried it yet. Thanks for
the suggestion.
Bob
--
Dr. Robert J. Jerrard, Professor of Mathematics,
Concordia University College of Alberta,
7128 Ada Blvd., Edmonton, Alberta, T5B 4E4, Canada.
Phone: (780) 479-9291, Fax: (780) 474-1933.