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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

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