Page 1 of 1

Graph option addtext

Posted: Mon Jul 08, 2013 11:40 am
by Zero
I have another problem with graph-option addtext

When I want to create even a simple graph for testting, like this

graph gra export_gdp_d distw
gra.addtext(l) "Exports/Partner GDP [%, ln-scal.]"
gra.addtext(b) "Distance [1000 km, ln-scal.]"


the text in the predefined positions (left and bottom) doesn´t disappear.
The new created text is written over the old one.

Even when I use the keep option same result...

I´m using Eviews 8 with the newest patch

Re: Graph option addtext

Posted: Mon Jul 08, 2013 11:54 am
by EViews Gareth
I'm not sure I follow. Could you post a screenshot of the result?

Re: Graph option addtext

Posted: Mon Jul 08, 2013 12:00 pm
by Zero
In the attachment is my program and a jpeg of the graph

Re: Graph option addtext

Posted: Mon Jul 08, 2013 12:59 pm
by Zero

Re: Graph option addtext

Posted: Mon Jul 08, 2013 1:10 pm
by EViews Gareth
You have the legend displaying. Try:

Code: Select all

gr_ctr_o_{%ctr}_{%year}.legend -display

Re: Graph option addtext

Posted: Mon Jul 08, 2013 1:19 pm
by Zero
Thanks, now it works.
Can you perhaps tell me, why I have four times 1 and two times 2 on my boarder axis

Re: Graph option addtext

Posted: Mon Jul 08, 2013 1:31 pm
by EViews Gareth
Rounding, probably. Try changing the number of decimal places.

Re: Graph option addtext

Posted: Sun Dec 03, 2017 10:14 pm
by s.wright@bbk.ac.uk
Hi - I've failed a couple of times to add text to an existing graph. Eg

stepls_r2s_graph_{%depvar}.addtext(t,"R-squareds")

sits within a loop over {%depvar}. I can, eg add legends within same loop, but the addtext command produces no results.

Grateful for any suggestions

Thanks

Stephen