X-Received: by 10.43.139.66 with SMTP id iv2mr8317491icc.17.1396636641020; Fri, 04 Apr 2014 11:37:21 -0700 (PDT) X-Received: by 10.182.243.227 with SMTP id xb3mr15767obc.17.1396636640931; Fri, 04 Apr 2014 11:37:20 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news.glorb.com!l13no2968833iga.0!news-out.google.com!gi6ni200igc.0!nntp.google.com!l13no2968832iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Fri, 4 Apr 2014 11:37:20 -0700 (PDT) In-Reply-To: <338e9a22-ea14-4dae-8de1-1975550b4bb2@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=128.200.66.71; posting-account=jvWYbAoAAAAWyyRuZL_VWQZZcgS8eqjH NNTP-Posting-Host: 128.200.66.71 References: <338e9a22-ea14-4dae-8de1-1975550b4bb2@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <17e4434a-fe54-4e08-b8e2-7731cdcd59f0@googlegroups.com> Subject: Re: Complex constant error From: Ramon Yll Prous Injection-Date: Fri, 04 Apr 2014 18:37:20 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.graphics.apps.gnuplot:2393 El dimecres 2 d'abril de 2014 10:01:23 UTC-7, Ramon Yll Prous va escriure: > I'm trying to plot several graphs together using a script. A part of it says: > > > > do for [x=1:5]{ > > #set output 'plots/polarization-mixture-isoX'.word(xH2,x).'.tex' > > set title "$x_{H_2} = ".word(xH2,x)."\% x_{CO} = ".word(xCO,x)."\%$" > > plot for [t=1:3] 'results/'.word(xH2,x).'H2-'.word(xCO,x).'CO-'.word(T,t).'/polarization.csv'\ > > using ($1-word(Ec,t)):(abs($3)) with lines ls t title "$T = ".word(T,t)."^\\circ$C" > > } > > > > > > and I get this error from the terminal: > > > > ryllprous@ryllprous-OptiPlex-790:~/Ramon3/PA-SOFC$ gnuplot multiplot-polarization > > > > do for [x=1:5]{ > > ^ > > "multiplot-polarization", line 59: invalid complex constant > > > > > > Can anyone help me? What should I do? I know it should work because I'm not the first who uses this script. > > > > Thank you, > > > > Ramon > > > > > > P.S.: I'm using ubuntu 12.04 and gnuplot 4.4.3 Thanks Karl, no with gnuplot 4.6.5 works :) Have a good day, Ramon