Received: by 10.224.189.75 with SMTP id dd11mr3439029qab.6.1350786153731; Sat, 20 Oct 2012 19:22:33 -0700 (PDT) Received: by 10.52.175.73 with SMTP id by9mr872151vdc.1.1350786153706; Sat, 20 Oct 2012 19:22:33 -0700 (PDT) Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!x14no2843707qar.0!news-out.google.com!r17ni43198318qap.0!nntp.google.com!x14no2843703qar.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Sat, 20 Oct 2012 19:22:33 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=132.170.112.134; posting-account=PuLrswoAAADOCumTdENk-35uZLyKLL68 NNTP-Posting-Host: 132.170.112.134 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0665cef1-fa95-4d16-aa5f-8030d8674cb7@googlegroups.com> Subject: accesssing shell array variable with a gnuplot loop index From: fh.faraz.hussain@gmail.com Injection-Date: Sun, 21 Oct 2012 02:22:33 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2168 Xref: csiph.com comp.graphics.apps.gnuplot:1422 Hello all, I need to use shell variables in my gnuplot commands, for which I'm using t= he here document style. I also need to use loops inside the gnuplot code. B= oth these things are working. Now -- I want to use a gnuplot for loop's index to access a shell array var= iable. This is where I've been stuck all day. I have something like this: for ((i=3D0; i<=3D10; i++)) do var[$i] =3D i*10 done gnuplot<