change the location of a graph's text label

For questions regarding programming in the EViews programming language.

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

maggie
Posts: 3
Joined: Thu Sep 10, 2009 10:22 am

change the location of a graph's text label

Postby maggie » Thu Sep 10, 2009 10:37 am

I generate a bunch of graphs in a code. Since there is only one series in each graph, the series name appears above the box of the chart. How can I move it down below the box in a program?

Thank you.

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

Re: change the location of a graph's text label

Postby EViews Gareth » Thu Sep 10, 2009 10:56 am

You can use the addtext command to add text to a graph.

I trick to get rid of the existing text is to use addtext to put an empty string over the existing text.

maggie
Posts: 3
Joined: Thu Sep 10, 2009 10:22 am

Re: change the location of a graph's text label

Postby maggie » Thu Sep 10, 2009 11:36 am

Thank you.

sylgin
Posts: 4
Joined: Wed Dec 01, 2010 6:11 am

Re: change the location of a graph's text label

Postby sylgin » Wed Dec 01, 2010 7:54 am

How can I, in a program, delete the serie name which appears above the box of the chart ? I tried to use the addtext command but it doesn't work ?
Thank you.

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

Re: change the location of a graph's text label

Postby EViews Gareth » Wed Dec 01, 2010 8:34 am

graph.addtext(t) ""

jtica
Posts: 1
Joined: Sat Nov 01, 2014 4:15 pm

Re: change the location of a graph's text label

Postby jtica » Sat Nov 01, 2014 4:25 pm

addtext "" command deletes the title, but compared to graphs with two series, graphs with addtext "" are shifted down for one line.

This does not presents a big problem, but if someone tries to use two graphs in a single line in latex it is going to be impossible to align them verticaly. Graph with two series will be higher compared to graph with one series.

I tried with merge command which aligns graphs properly, but the problem is that merge means that it is a single figure in latex, so I can not cross reference each of the graph separately.

I tried to move legend one line lower with (y,x) command but it did not solve alignment problem.

My guess it that addtext overwrites graph name with empty text, but graph name line still remains in the graph. SO basically I am wondering is there any way to delete that text box?

jt


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests