Page 1 of 1

Right adjusted text - addtext

Posted: Wed Mar 09, 2016 9:08 am
by johansamuelsson
Hi

I'm trying to right-adjust text when i'm using "addtext" and the option control "just(arg)" for a graph. See the code below (last row) and graph. It doesn't work, the text i the graph are both left-adjusted. I'm using

Code: Select all

g.addtext(!pos,-0.5,just("r")) "Right adjusted text"
Source: http://www.eviews.com/help/helpintro.ht ... 95.05.html

Any idea what's wrong?

Regards Johan

Code: Select all

wfcreate(a) annual 2000 2015 Series a1 a1.adjust = 1 .. 2 Graph g.line a1 !pos = g.@axispos("2015","b") g.addtext(!pos,-0.3) "Left adjusted text" g.addtext(!pos,-0.5,just("r")) "Right adjusted text"
g.png
g.png (16.41 KiB) Viewed 3119 times

Re: Right adjusted text - addtext

Posted: Wed Mar 09, 2016 9:17 am
by EViews Gareth
No quotes.

Code: Select all

wfcreate(a) annual 2000 2015 Series a1 a1.adjust = 1 .. 2 Graph g.line a1 !pos = g.@axispos("2015","b") 'g.addtext(!pos,-0.3) "Left adjusted text" g.addtext(!pos,-0.5,just(r)) "Right adjusted text \n this is some more text, yes it is"

Re: Right adjusted text - addtext

Posted: Wed Mar 09, 2016 9:30 am
by johansamuelsson
:D

Regards Johan