|
From: Mojca M. <moj...@gm...> - 2009-05-22 14:03:24
|
Hello,
Is there some way to do something like this in gnuplot apart from
using external script?
for [i in "0.01 0.1 1 2 3 10"]
filename=sprintf("name-%g.png", i)
command=sprintf("./script %g", i)
set output filename
plot command using 1:3 with lines
endfor
I've read about reread, but I don't know how to apply it here except
if gnuplot supports some array data structure which I think it doesn't
(but maybe I'm wrong), or if I create a function with a long series of
f(x) = (x==1) ? 0.01 : (x==2) ? 0.1 : (x==3) ? 1 ...
but in that case I would probably prefer to use external script for that.
Thanks,
Mojca
|