On Thu, 15 Jan 2009, Allin Cottrell wrote:
On Thu, 15 Jan 2009, Artur Tarassow wrote:
> I've got just a short question. Why is it not possible to use
> the gnuplot command within a loop? I would like to compile a
> whole bunch of xy-graphs by an easy command. Or can you
> recommend another solution for my problem?
You're right, we should enable batch-mode graphs in loops...
Done in CVS and snapshot. This sort of thing will now work
<script>
open data9-7
list L = QNC PRIME INCOME
loop foreach i L
gnuplot $i --time
endloop
</script>
It will generate files gpttmp*.plt as described in the help for
gretl's gnuplot command in relation to batch mode.
Offering control over the filename is on the TODO list.
Allin.