Position of a textbox

For making suggestions and/or requests for new features you'd like added to EViews.

Moderators: EViews Gareth, EViews Moderator

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

Position of a textbox

Postby johansamuelsson » Thu Apr 19, 2018 11:25 pm

Hi

There is a options control to put a text box above a graph. To put the textbox to the left "al" can be used, and to the right "ar". See code and graph 1.

However, in my opinion, the textbox places too far to the right when using "al" (and vice versa).

One suggestion is that the textbox is placed in the left-hand of the scale when using "al" (or a new "options control"). The same with "ar" but vice versa. See graph 2.

If that isn't possible another suggestion that the user could indicate which corner of the textbox the virtual coordinates are linked to. The manual says, "To place text within a graph, you can use explicit coordinates to specify the position of the upper left corner of the text". If the user could choose between

upper left corner (default)
upper right corner
lower left corner
lower right corner

it would be great

Regards Johan

Code: Select all

WfCreate(page=a) a 2000 2010
Series x=(@rnd+1)*100
Graph g1.line x
g1.axis dual
%t1 = "Textposition with\roptions control " + @Chr(34) + "al"+ @Chr(34)
%t2 = "Textposition with\roptions control " + @Chr(34) + "ar"+ @Chr(34)
g1.AddText(al,x) {%t1}
g1.AddText(ar,x) {%t2}
Show g1


Graph 1
g1.gif
g1.gif (8.71 KiB) Viewed 3950 times


Graph 2
g2.gif
g2.gif (8.74 KiB) Viewed 3950 times

Return to “Suggestions and Requests”

Who is online

Users browsing this forum: No registered users and 4 guests