I have a graph that was plotted
Code: Select all
graph gr.line
Thanks
Huseyin
Moderators: EViews Gareth, EViews Moderator
Code: Select all
graph gr.line
Code: Select all
graph gr_multi.line(a) new
gr_multi.shade(shade, left) 0
gr_multi.options linepat
gr_multi.setelem(2) lcolor(black) lwidth(2) lpat(1)
Code: Select all
load eviewstest
series trend=@trend
series index = trend-@first(trend) 'create an index series starting at the beginning of the sample
group mygroup index new
freeze(gr_multi2) mygroup.xyline
Code: Select all
%trend=@getnextname("ZZ__trend")
%index=@getnextname("ZZ__index")
%mygroup=@getnextname("ZZ__mygroup")
series {%trend}=@trend
series {%index} = {%trend}-@first({%trend})-1
%legendArti=%i+ " +"
%legendEksi=%i+ " -"
' graph {%graph}.line {%i}_2_0m -{%i}_2_0m ({%i}_2_0m -{%i}_2_0m)
group {%mygroup} {%index} {%i}_2_0m -{%i}_2_0m ({%i}_2_0m -{%i}_2_0m)
freeze({%graph}) {%mygroup}.xyline
{%graph}.shade(shade, left) 0
{%graph}.options linepat
{%graph}.setelem(1) lcolor(black) lwidth(3) lpat(2) legend()
{%graph}.setelem(2) lcolor(black) lwidth(2) lpat(1)legend({%legendArti})
{%graph}.setelem(3) lcolor(red) lwidth(2) lpat(1) legend({%legendEksi})
{%graph}.setelem(4) lcolor(red) lwidth(1) lpat(2) legend(diff)
{%graph}.setelem(5) lcolor(red) lwidth(1) lpat(2)legend()
{%graph}.setelem(6) lcolor(red) lwidth(0) lpat(2) legend()
{%graph}.options size(4,2) -inbox
{%graph}.legend position(botcenter)
Code: Select all
group {%mygroup} {%index} {%i}_2_0m -{%i}_2_0m ({%i}_2_0m -{%i}_2_0m)
Code: Select all
series {%index} = {%trend}-@first({%trend})-1
Code: Select all
%graph="linegraph"
d {%graph}
graph {%graph}.line x1 x2 x3
{%graph}.shade(shade, left) 0
{%graph}.options linepat
{%graph}.setelem(1) lcolor(black) lwidth(2) lpat(2) legend(x1)
{%graph}.setelem(2) lcolor(black) lwidth(2) lpat(1)legend(x2)
{%graph}.setelem(3) lcolor(red) lwidth(2) lpat(1) legend(x3)
group mygroup trend x1 x2 x3
%graph="xylinegraph"
freeze({%graph}) mygroup.xyline
{%graph}.shade(shade, left) 0
{%graph}.options linepat
{%graph}.setelem(1) lcolor(black) lwidth(2) lpat(2) legend(x1)
{%graph}.setelem(2) lcolor(black) lwidth(2) lpat(1)legend(x2)
{%graph}.setelem(3) lcolor(red) lwidth(2) lpat(1) legend(x3)
Code: Select all
{%graph}.setelem(2) lcolor(black) lwidth(2) lpat(2) legend(x1)
{%graph}.setelem(3) lcolor(black) lwidth(2) lpat(1)legend(x2)
{%graph}.setelem(4) lcolor(red) lwidth(2) lpat(1) legend(x3)
Return to “Add-in Writing area”
Users browsing this forum: No registered users and 6 guests