goptions reset=all; /* Clear the graphics catalog work.gseg */ proc greplay nofs igout=work.gseg; delete _all_; run; /* Create Data set */ data one; input x y y1 y2; cards; 1 10 20 50 2 20 80 40 3 30 50 90 4 40 60 80 5 50 70 90 6 60 50 100 7 70 60 40 8 80 20 70 9 90 100 10 10 100 50 10 ; data anno; retain xsys ysys '1' when 'a'; length function $8 text $20; function='label';x=10;y=80;text='These are stars';output; function='label';x=50;y=50;text='This is a dashed line';output; function='label';x=50;y=70;text='This is a solid line';output; run; symbol1 i=join c=black line=36; symbol2 i=join c=black line=1; symbol3 i=none v=star c=black; proc gplot data=one; plot y*x y1*x y2*x / overlay legend anno=anno; run; quit;