Am 23.02.2017 um 08:30 schrieb Schaff, Frederik:
I am constructing a set of xy plots in a loop, using a predefined
list
of variables for the plots. I’d like the names of the plots to include
the variables names. Here is a MWE, including some comments on what I
tried and did not work:
Any idea how I can make this work?
Maybe something like this (untested):
loop foreach i xs
$i <- gnuplot $i ys[i]
endloop
Not sure the ys[i] would work inside this loop, though. Perhaps you
would have to use another index j, initialize that to 1 and increment
manually via j++ at the end.
But definitely look up the doc for the foreach-variant of the loop.
cheers,
sven