Error addtext to graphs looping over cross sections in panel

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

mamo
Posts: 192
Joined: Wed Nov 07, 2012 9:11 am

Error addtext to graphs looping over cross sections in panel

Postby mamo » Tue Sep 15, 2015 3:34 am

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

mamo
Posts: 192
Joined: Wed Nov 07, 2012 9:11 am

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

Postby mamo » Tue Sep 15, 2015 3:36 am

I forgot: using Eviews 9 April 3 2015 build

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13317
Joined: Tue Sep 16, 2008 5:38 pm

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

Postby EViews Gareth » Tue Sep 15, 2015 3:47 am

Please update to the latest version of EV9.
Follow us on Twitter @IHSEViews

mamo
Posts: 192
Joined: Wed Nov 07, 2012 9:11 am

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

Postby mamo » Tue Sep 22, 2015 12:24 am

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

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

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

Postby EViews Jason » Tue Sep 22, 2015 8:54 am

You can do it via the user interface but we will get it fixed for the command line in the next patch

amir sadeghi
Posts: 3
Joined: Mon Mar 28, 2016 9:23 am

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

Postby amir sadeghi » Mon Mar 28, 2016 9:28 am

Hello,

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

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

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

Postby EViews Jason » Mon Mar 28, 2016 10:15 am

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


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 30 guests