BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Hanyu
Fluorite | Level 6

Here is my code to generate a graph without border using proc greplay. I did specify the goption noborder options. It did not work.

%macro delcat(catname);

%if %sysfunc(cexist(&catname))

%then %do;

proc greplay nofs igout=&catname;

delete _all_;

run;

quit;

%end;

%mend delcat;

%delcat(work.gseg)

axis1 order=(-0.1 to 0.20 by 0.05)  label=(justify=c angle=90 "Correlation")    minor=(n=3);

axis2 order=(0 to 500 by 50) label=(justify=r "Lags") major=(n=5);

symbol1 interpol=join color=black value=none;

symbol2 interpol=join color=black line=20 value=none;

proc gplot data=arima;

plot corr*lag stderr*lag/overlay vaxis=axis1 haxis=axis2;

title 'Correlogram of squared raw 10-min returns';

footnote;

run;

proc gplot data=arima1;

plot corr*lag stderr*lag/overlay vaxis=axis1 haxis=axis2;

title 'Correlogram of deseasonal squared 10-min returns';

*footnote 'Dashed lines represent 2 times of standard errors of autocorrelations';

footnote;

run;

goption reset=all xmax=15cm ymax=15cm noborder;

ods html gpath="C:\" image_dpi=200;

proc greplay igout=work.gseg  tc=sashelp.templt nofs;

template v2;

treplay 1:gplot

        2:gplot1;

  quit;

1 ACCEPTED SOLUTION

Accepted Solutions
GraphGuy
Meteorite | Level 14

In this situation, the border you are seeing around the graphs is probably coming from the greplay template itself (rather than goptions border). When a greplay template is defined/created, if you specify a 'color=' then that color will be used as a visible border around the graph. You are using the pre-defined "V2" template, and I believe it is created with color=black (so the graphs have a black border drawn around them).

Here is the code used to create the V2 template - you could modify this code to create your own custom template, and leave out the 'color=black' to leave out the borders:

SAS/GRAPH(R) 9.2: Reference, Second Edition

proc greplay tc=tempcat nofs;

   tdef V2 des= "1 BOX UP, 1 BOX DOWN"

        1/llx=0   lly=50

          ulx=0   uly=100

          urx=100  ury=100

          lrx=100  lry=50

          color=black

        2/llx=00  lly=00

          ulx=00  uly=50

          urx=100 ury=50

          lrx=100 lry=0

          color=black;

quit;

View solution in original post

1 REPLY 1
GraphGuy
Meteorite | Level 14

In this situation, the border you are seeing around the graphs is probably coming from the greplay template itself (rather than goptions border). When a greplay template is defined/created, if you specify a 'color=' then that color will be used as a visible border around the graph. You are using the pre-defined "V2" template, and I believe it is created with color=black (so the graphs have a black border drawn around them).

Here is the code used to create the V2 template - you could modify this code to create your own custom template, and leave out the 'color=black' to leave out the borders:

SAS/GRAPH(R) 9.2: Reference, Second Edition

proc greplay tc=tempcat nofs;

   tdef V2 des= "1 BOX UP, 1 BOX DOWN"

        1/llx=0   lly=50

          ulx=0   uly=100

          urx=100  ury=100

          lrx=100  lry=50

          color=black

        2/llx=00  lly=00

          ulx=00  uly=50

          urx=100 ury=50

          lrx=100 lry=0

          color=black;

quit;

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 2160 views
  • 0 likes
  • 2 in conversation