Thanks a lot. My problem solved with changing smpl ![Smile :)]()
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.

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)