Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2388 > unrolled thread

Complex constant error

Started byRamon Yll Prous <ryllprous@gmail.com>
First post2014-04-02 10:01 -0700
Last post2014-04-04 11:37 -0700
Articles 4 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Complex constant error Ramon Yll Prous <ryllprous@gmail.com> - 2014-04-02 10:01 -0700
    Re: Complex constant error Ramon Yll Prous <ryllprous@gmail.com> - 2014-04-02 10:51 -0700
    Re: Complex constant error Karl <mail.kfr@gmx.net> - 2014-04-02 21:25 +0200
    Re: Complex constant error Ramon Yll Prous <ryllprous@gmail.com> - 2014-04-04 11:37 -0700

#2388 — Complex constant error

FromRamon Yll Prous <ryllprous@gmail.com>
Date2014-04-02 10:01 -0700
SubjectComplex constant error
Message-ID<338e9a22-ea14-4dae-8de1-1975550b4bb2@googlegroups.com>
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

[toc] | [next] | [standalone]


#2389

FromRamon Yll Prous <ryllprous@gmail.com>
Date2014-04-02 10:51 -0700
Message-ID<7891e85c-f115-4325-8d7f-13ebccf8a8cf@googlegroups.com>
In reply to#2388
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

[toc] | [prev] | [next] | [standalone]


#2391

FromKarl <mail.kfr@gmx.net>
Date2014-04-02 21:25 +0200
Message-ID<lhho8e$v20$1@news.rz.uni-karlsruhe.de>
In reply to#2388
Am 02.04.2014 19:01, schrieb Ramon Yll Prous:
> I'm trying to plot several graphs together using a script. A part of it says:
> 
> do for [x=1:5]{

.....

> P.S.: I'm using ubuntu 12.04 and gnuplot 4.4.3
> 


This cannot work. The "do for [] {}" iteration was only intruduced in
gnuplot 4.6.0.

  Karl

[toc] | [prev] | [next] | [standalone]


#2393

FromRamon Yll Prous <ryllprous@gmail.com>
Date2014-04-04 11:37 -0700
Message-ID<17e4434a-fe54-4e08-b8e2-7731cdcd59f0@googlegroups.com>
In reply to#2388
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web