|
From: <pl...@pi...> - 2015-12-13 15:30:02
|
Hi,
I need to plot a series of data files and one reference file.
here I get all the data files and one test plot
plot[0:1.2] for [ len=9000:7000:-50 ] s=0 \
, "data-".sprintf("%d",len).".out" u (1/$4):5 w l tit
sprintf("%d",len).".out" \
, "test_filter.out" u (1/$4):($5*1.5e08) w l tit " filter resp " \
but this way around I get the test plot n time and only the last data
file plotted.
plot[0:1.2] for [ len=9000:7000:-50 ] s=0 \
, "test_filter.out" u (1/$4):($5*1.5e08) w l tit " filter resp " \
, "data-".sprintf("%d",len).".out" u (1/$4):5 w l tit
sprintf("%d",len).".out" \
gnuplot> help for
The `plot`, `splot`, `set` and `unset` commands may optionally contain an
iteration for clause. This has the effect of executing the basic command
multiple times, each time re-evaluating any expressions that make use
of the
iteration control variable.
This does not seem consistent with what happens.
regards, Peter.
|