title: Set parameters of Gnuplot from array in bash script
body: <p>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.</p>
  
  <pre><code>gnuplot &lt;&lt; EOF
  values="${params[*]}"
  do for [val in values] {
  val=sprinf("%s", j)
  set $val
  }
  </code></pre>
  
  <p>I got this output:</p>
  
  <pre><code>gnuplot&gt; do for [j in values] {
                                ^
           line 0: invalid complex constant
           line 0: undefined variable: j
  gnuplot&gt; set 
               ^
           line 0: Unrecognized option.  See 'help set'.
  gnuplot&gt; }
           ^
           line 0: invalid character }
  </code></pre>
  
  <p>I'm sure, I have multiple strings inside of params array.
  Thanks</p>