addarrow - labelpos option not working properly

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: 189
Joined: Wed Nov 07, 2012 9:11 am

addarrow - labelpos option not working properly

Postby mamo » Tue Nov 21, 2017 10:18 am

Dear Eviews team,
I use Eviews 9.5 Dec 2016 built
It seems that the labelpos option of the addarrow command does not work properly
The help page for addarrow says
label adds a text label to the start point of the arrow. labelpos specifies whether the text should be above the line (vert) or next to the line (horz)

However, in the code below, the positioning of the label does not change, irrespective of wether labelpos(vert) or labelpos(horz) is specified
Best, mamo

Code: Select all

wfcreate a 2000 2010
series x=nrnd
graph mygr.line x
mygr.addarrow pos(0,3.4, 0.5, 3.4) label(Vert)  labelpos(vert)
mygr.addarrow pos(2,3.4, 2.5, 3.4) label(Horz)  labelpos(horz)
show mygr

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

Re: addarrow - labelpos option not working properly

Postby EViews Jason » Mon Nov 27, 2017 9:25 am

That is by design. For horizontal arrows, 'vert' is ambiguous. Use 'A' or 'B'. And for vertical arrows use 'L' or 'R'.

Code: Select all

wfcreate a 2000 2010
series x=nrnd
graph mygr.line x
mygr.addarrow pos(0,3.4, 0.5, 3.4) label(Vert)  labelpos(A)
mygr.addarrow pos(2,3.4, 2.5, 3.4) label(Horz)  labelpos(B)
show mygr


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 4 guests