I'm trying to load parameters of Gnuplot from configuration file using bash script and plotting data. The point of this problem is access to these parameters. This is my attempt of solution, but some errors occured.
gnuplot << EOF
values="${params[*]}"
do for [val in values] {
val=sprinf("%s", j)
set $val
}
I got this output:
gnuplot> do for [j in values] {
^
line 0: invalid complex constant
line 0: undefined variable: j
gnuplot> set
^
line 0: Unrecognized option. See 'help set'.
gnuplot> }
^
line 0: invalid character }
I'm sure, I have multiple strings inside of params array. Thanks
load 'config.gp'?