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

Does SGPLOT have NOFRAME? It is not NOBORDER. Here's the code.

data _;
do i=1 to 100;
x=rannor(1);
y=x+rannor(1);
output;
end;
run;
ods listing gpath="!userprofile\desktop\";
ods graphics/reset;
proc sgplot;
scatter x=x y=y;
run;

I wonder whether the red part can be removed.

SGPlot1.png

Thanks for your help.

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Check the documentation for stuff like this:

 

https://documentation.sas.com/?docsetId=grstatproc&docsetTarget=p073bl97jzadkmn15lhq58yiy2uh.htm&doc...

 

NOBORDER and NOWALL look promising.

 


@Junyong wrote:

Does SGPLOT have NOFRAME? It is not NOBORDER. Here's the code.

data _;
do i=1 to 100;
x=rannor(1);
y=x+rannor(1);
output;
end;
run;
ods listing gpath="!userprofile\desktop\";
ods graphics/reset;
proc sgplot;
scatter x=x y=y;
run;

I wonder whether the red part can be removed.

SGPlot1.png

Thanks for your help.


 

View solution in original post

4 REPLIES 4
Reeza
Super User

Check the documentation for stuff like this:

 

https://documentation.sas.com/?docsetId=grstatproc&docsetTarget=p073bl97jzadkmn15lhq58yiy2uh.htm&doc...

 

NOBORDER and NOWALL look promising.

 


@Junyong wrote:

Does SGPLOT have NOFRAME? It is not NOBORDER. Here's the code.

data _;
do i=1 to 100;
x=rannor(1);
y=x+rannor(1);
output;
end;
run;
ods listing gpath="!userprofile\desktop\";
ods graphics/reset;
proc sgplot;
scatter x=x y=y;
run;

I wonder whether the red part can be removed.

SGPlot1.png

Thanks for your help.


 

Junyong
Pyrite | Level 9
My apologies. I was trying to put NOBORDER in ODS GRAPHICS rather than in PROC SGPLOT. The first NOBORDER deleted the most outer border rather than the border I mentioned. Thanks for this.
ballardw
Super User

Are you actually sending the result to the LISTING destination? That may be the problem as many of the ODS features are problematic.

 

With the HTML results window

data _;
do i=1 to 100;
x=rannor(1);
y=x+rannor(1);
output;
end;
run;
ods listing gpath="!userprofile\desktop\";
ods graphics/reset;
proc sgplot;
scatter x=x y=y;
run;

SGPlot.png

Reeza
Super User
ODS LISTING doesn't really support graphics within itself anyways, they're created as files external to the listing output. From the output of your graph you have a different default style and that can change some of the output. If I run your code in Academics OnDemand, I get something similar to the OP, not your output.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 5294 views
  • 0 likes
  • 3 in conversation