load(draw) is very slow (takes about 13 seconds)



El mi?, 27-03-2013 a las 23:43 +0100, Volker van Nek escribi?:
> Mario,
> 
> I guess the batch mode simply runs too fast. A closer look shows that
> there are some more error messages. It seems to me that maxout.gnuplot
> can't be written or read that fast. The file runs perfectly after
> placing
> system("sleep 1")$
> between all commands.
> Don't know if that is the solution you want. But I hope that gives a hint.

Yes, I see it after compiling Maxima with Gcl. But I am not sure

system("sleep 1")$

is valid as a general solution. Maybe the best solution is to avoid
using 'batch' and call 'demo' instead; after all, you want to take your
time to see the details of the plots to be sure everything is all right.
A rapid sequence of images doesn't give much information.

On the other hand, perhaps this problem has something to do with the
fact that 'draw' always writes two files, maxout.gnuplot and
data.gnuplot. But rewriting the package to make use of only one file
would take some time.

In any case, Volker, thanks again for looking at all this.

--
Mario