Quantcast
Channel: EViews
Viewing all articles
Browse latest Browse all 24144

Modify graph axis

$
0
0
Thanks a lot. My problem solved with changing smpl :)

Bu I found an bug about plotting with xyline command.
xyline command ignores first series when it plot and colourized but start from first (trend in this example) when legend command is used.
Code:


%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)     




Viewing all articles
Browse latest Browse all 24144


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>