|
From: Thomas S. <t.s...@fz...> - 2011-02-13 20:07:40
|
set 'min=10**10' at the beginning of each file:
plot ... using ($0==0?min=10**10:min=min , $1):($3/grab($3))
warpino wrote:
>
> 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.
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context: http://old.nabble.com/Recognize-end-of-file-in-iterations-tp30915481p30916460.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|