|
From: Nunzio L. <nun...@gm...> - 2011-02-13 17:16:47
|
Hi all,
I have some datafiles all named disy.100 in different directories and I want
to plot them all using column 1 vs 3 the latter being divided for the
minimum value in each datafile.
After googleing a bit, for a single file I managed to do:
min=10**10
grab(x)=x<min?min=x:min=min
plot 'disy.100' u 1:($3/grab($3))
and that's fine.
Now I want to do it iteratively starting from the parent directory:
list=system("ls")
min=10**10
grab(x)=x<min?min=x:min=min
plot for[i in list] i.'/disy.100' u 1:($3/grab($3))
but in this case min gets the minimum value of columns 3 of ALL datafiles to
be plotted, while I want it to be the minimum for each dataset.
Do you have any suggestions for doing that other than processing the files
through awk first?
Thanks for your help!
w.
|