Page 1 of 1

Error addtext to graphs looping over cross sections in panel

Posted: Tue Sep 15, 2015 3:34 am
by mamo
Dear Eviews team,
the code below creates the error message
Data based arrows are not permitted in panel workfiles T in "DO_ GRD.ADDTEXT(T) "GROUP "+"D"".
It seems that it is not possible to add text to charts looping over the cross sections in a panel?

Code: Select all

wfcreate a 2000 2015 5 series x=nrnd+10*crossid alpha csect=@chr(64+crossid) for %c D A C smpl @all if csect=%c freeze(mode=overwrite, gr{%c}) x.line gr{%c}.addtext(t) "Group "+%c next
The corresponding error message
Data based arrows are not permitted in panel workfiles L in "DO_ GRD.ADDTEXT(L) "GROUP "+"D"".
pops up when replacing the 2nd but last code line by

Code: Select all

gr{%c}.addtext(l) "Group "+%c
Best,
mamo

Re: Error addtext to graphs looping over cross sections in p

Posted: Tue Sep 15, 2015 3:36 am
by mamo
I forgot: using Eviews 9 April 3 2015 build

Re: Error addtext to graphs looping over cross sections in p

Posted: Tue Sep 15, 2015 3:47 am
by EViews Gareth
Please update to the latest version of EV9.

Re: Error addtext to graphs looping over cross sections in p

Posted: Tue Sep 22, 2015 12:24 am
by mamo
Dear Eviews team,
I have upgraded to the September 14 2015 build.
The problem described above exists also with the updated version of EVEIWS 9
Kind regards,
mamo

Re: Error addtext to graphs looping over cross sections in p

Posted: Tue Sep 22, 2015 8:54 am
by EViews Jason
You can do it via the user interface but we will get it fixed for the command line in the next patch

Re: Error addtext to graphs looping over cross sections in p

Posted: Mon Mar 28, 2016 9:28 am
by amir sadeghi
Hello,

seems like this is still a problem!!
I am using the latest version.

Re: Error addtext to graphs looping over cross sections in p

Posted: Mon Mar 28, 2016 10:15 am
by EViews Jason
The program does run and no longer produces the reported error.

The output however is probably not what the original author wanted. Addtext cannot parse string expressions. I presume the author probably wanted:

Code: Select all

wfcreate a 2000 2015 5 series x=nrnd+10*crossid alpha csect=@chr(64+crossid) for %c D A C smpl @all if csect=%c freeze(mode=overwrite, gr{%c}) x.line %s = "Group " + %c gr{%c}.addtext(t) %s next