BookmarkSubscribeRSS Feed
ThiNguyen
Calcite | Level 5

Need help please,

Hi all, I would like to delete the inner borders (the right and top borders of the graph), only keep the lines/borders of the X and Y axes. I have tried to use the following codes to remove the right and top inner borders, but could not succeed. 

Thank you!

 

ods graphics / noborder;

proc sgplot data=MeanData noautolegend; title;

styleattrs datacontrastcolors=(red green black) wallcolor=white;

loess x=t y=Means / group=Treatment nomarkers smooth=0.3 lineattrs=(thickness=3);

xaxis label="Days" max=100 labelattrs=(size=16) valueattrs=(size=14);

yaxis label=“OD, g/d" max=30 values=(0 to 50 by 5) labelattrs=(size=16) valueattrs=(size=14);

x2axis display=none;

y2axis display=none;

run;

3 REPLIES 3
Ksharp
Super User

Could you post a desired graph to explain what you are looking for ?

And you want this ?

 

ods graphics / noborder;
proc sgplot data=sashelp.heart(obs=1000) noautolegend noborder; title ;
styleattrs datacontrastcolors=(red green black) wallcolor=white;
loess x=height y=weight / group=bp_status nomarkers smooth=0.3 lineattrs=(thickness=3);
xaxis label="Days" labelattrs=(size=16) valueattrs=(size=14);
yaxis label="OD, g/d" labelattrs=(size=16) valueattrs=(size=14);
x2axis display=none;
y2axis display=none;
run;

Ksharp_0-1763019063528.png

 

ThiNguyen
Calcite | Level 5
Hi,
Many thanks for your help! I already created the graph, but I could not remove/delete the right and the top borders of the graph.
The following is an example where the right and the top borders have been removed (only show x and y axes lines)

Thank you!
[cid:e2eb064e-6b83-49c1-99e0-bbd17e661b51]
Ksharp
Super User
I do not see that desired graph .

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 3 replies
  • 398 views
  • 1 like
  • 2 in conversation