Page 1 of 1

Adding specific lines to multiple graphs

Posted: Thu Jan 09, 2014 8:56 am
by maragloria
Hi There,

I would like to add specific lines to multiple graphs using the command DRAW (or something else you might suggest).

Here is the image of my graph :
beta_au.jpg
beta_au.jpg (44.46 KiB) Viewed 3884 times

Here is the code I'm using :

Code: Select all

beta1.displayname Beta for lag=3M beta2.displayname Beta for lag=6M beta3.displayname Beta for lag=9M" beta4.displayname Beta for lag=12M freeze(beta_au) temp.line(m) beta_au.addtext(t,textcolor(blue),font("arial", 20,+b)) "AUSTRALIE" scalar mbeta1 = @mean(beta1) beta_au.draw(line, left) mbeta1 show beta_au
I got 2 questions :

1) How can I add specific lines to each graph in the figure ? For instance, the horizontal lines you can see in all graphs is the mean of "beta for lag 3". The command "beta_au.draw(line, left) mbeta1" is adding the mean of beta1 to all graphs whereas I would like to have each graph with its own mean.

2) How can I add a text to each horizontal line ? I added the "0.6" you see in the first graph manually.

Thanks for your help,

Mara

Re: Adding specific lines to multiple graphs

Posted: Thu Jan 09, 2014 9:00 am
by EViews Gareth
On my phone, so can't check exactly, but the general rule of thumb is that you add text, formatting, lines, etc... to the individual graphs before merging them into a multi graphs

Re: Adding specific lines to multiple graphs

Posted: Thu Jan 09, 2014 9:12 am
by maragloria
Got it! Thanks very much for your prompt reply.