Features: |
|
Other features: |
LEGEND statement |
Data set: | SWIRL |
Sample library member: | GCTPATJ |
goptions reset=all border;
data swirl; do x= -5 to 5 by 0.25; do y= -5 to 5 by 0.25; if x+y=0 then z=0; else z=(x*y)*((x*x-y*y)/(x*x+y*y)); output; end; end; run;
title1 "Line Contour Levels"; footnote1 j=r "GCTPATR1";
proc gcontour data=swirl; plot y*x=z; run; quit;
title1 "Pattern Contour Levels"; footnote j=r "GCTPATR2";
proc gcontour data=swirl; plot y*x=z / ctext=green coutline=gray pattern; run; quit;
title "Contour Plot with Joined Cells"; footnote j=r "GCTPATR3";
axis1 label=none value=("-5" '' "0" '' "5") color=red width=3; axis2 label=none value=("-5" '' "0" '' "5") color=red width=3;
legend1 frame;
proc gcontour data=swirl; plot y*x=z / haxis=axis1 join legend=legend1 pattern vaxis=axis2; run; quit;
data swirl; do x= -5 to 5 by 0.25; do y= -5 to 5 by 0.25; if x+y=0 then z=0; else z=(x*y)*((x*x-y*y)/(x*x+y*y)); output; end; end; run;
axis1 label=none value=("-5" '' "0" '' "5") color=red width=3; axis2 label=none value=("-5" '' "0" '' "5") color=red width=3;