有没有高手帮下忙啊,
data mydata;
do i=1 to 10;
x=i;
y1=i*2;
y2=i*3;
y3=i*4;
y4=i*5;
y5=i*6;
y6=i*100;
output;
end;
drop i;
run;
ODS GRAPHICS on/ RESET IMAGENAME = 'Final'
IMAGEFMT =tiff;
ODS LISTING GPATH = 'c:\MyGraphs';
goptions device=png gsfname=output gsfmode=replace xpixels=1200 ypixels=900 xmax=4 in ymax=3 in;
goption reset=global;
goptions ftext='Arial' htext=2 gunit=pct ctext=black;
title1 h=6 f='arial/bo' "This is one figure";
title2 " ";
title3 " ";
title4 " ";
title5 " ";
axis1 label=(f='arial/bo' h=5 "Price") order=(0 to 10 by 1)
value=(f='arial/bo' h=5);
axis2 label=(a=90 f='arial/bo' h=5 "first axis") order=(0 to 100 by 10)
value=(f='arial/bo' h=5);
axis3 label=(a=90 f='arial/bo' h=5 "second axis") order=(100 to 1000 by 100)
value=(f='arial/bo' h=5);
LEGEND1 LABEL=(HEIGHT=1 "") value=(f='arial/bo' h=4) position=(top center outside)
order=("y1" "y2" "y3" "y4" "y5") FWIDTH=40
across=3 down=2 origin=(13 84) mode=share;
LEGEND2 mode=protect LABEL=(HEIGHT=5 '') value=(f='arial/bo' h=4) position=(top center outside) origin=(23 84)pct
order=("y6") FWIDTH=40 mode=share;
symbol1 v=none INTERPOL=join c=blue width=5;
symbol2 v=none INTERPOL=join c=red width=5;
symbol3 v=none INTERPOL=join c=green width=5;
symbol4 v=none INTERPOL=join c=MAGENTA width=5;
symbol5 v=none INTERPOL=join c=CRIMSON width=5;
symbol6 v=none INTERPOL=join c=orange width=5;
proc gplot data=mydata;
plot (y1 y2 y3 y4 y5)*x / overlay frame legend=legend1 haxis=axis1
vaxis=axis2 vref=0 cvref=black;
plot2 y6*x /overlay frame legend=legend2 vaxis=axis3;
run;
quit;
ods listing close;
ods graphics off;



雷达卡



京公网安备 11010802022788号







