Just write $i.png
Best,
Artur
2014-07-02 14:12 GMT+02:00 Robert W. Jones <jonesr2(a)rpi.edu>:
I have a list of variables {alpha, beta, gamma, delta} and want to
plot
each of them against a variable called “time” and print the gnuplot to a
file using the “.png” option. How do I rename each file during the loop so
that they do not overwrite each other. I would like to print to files
labeled alpha.png, beta.png, gamma.png, and delta.png.
This is the code that I have. The list name is alphabet. The questions
marks are the part of the code I can’t figure out.
loop foreach letter alphabet
gnuplot $letter time --output= ????????.png
endloop
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users