Right adjusted text - addtext

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

johansamuelsson
Posts: 165
Joined: Thu Mar 03, 2011 10:07 pm
Contact:

Right adjusted text - addtext

Postby johansamuelsson » Wed Mar 09, 2016 9:08 am

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 3116 times

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

Re: Right adjusted text - addtext

Postby EViews Gareth » Wed Mar 09, 2016 9:17 am

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"

johansamuelsson
Posts: 165
Joined: Thu Mar 03, 2011 10:07 pm
Contact:

Re: Right adjusted text - addtext

Postby johansamuelsson » Wed Mar 09, 2016 9:30 am

:D

Regards Johan


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest