BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
shishiwakamaru
Calcite | Level 5
proc sgpanel data=sashelp.iris;	
  panelby species / novarname columns=3;
  reg x=sepallength y=sepalwidth;
run;

I'm working on the proc sgpanel plot (SAS 9.4) and need help with the font. Can I make the word "Setosa" (partly) italicized, like Setosa? Any help would be greatly appreciated!

 Capture.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User
%sganno
data sganno;
%SGRECTANGLE(X1=20,Y1=98,HEIGHT=3,WIDTH=20,DISPLAY="FILL",DRAWSPACE="LAYOUTPERCENT",FILLCOLOR="white")
%SGTEXT(LABEL="Se",WIDTH=100,DRAWSPACE="LAYOUTPERCENT",TEXTSIZE=9,X1=22,Y1=97.6,FILLCOLOR="white",FILLTRANSPARENCY=1)
%SGTEXTCONT(LABEL="tosa",TEXTSIZE=9,TEXTSTYLE="ITALIC")

run;

proc sgpanel data=sashelp.iris sganno=sganno;	
  panelby species / novarname columns=3 headerbackcolor=white;
  reg x=sepallength y=sepalwidth;
run;

Ksharp_0-1669973225697.png

 

View solution in original post

2 REPLIES 2
Ksharp
Super User
%sganno
data sganno;
%SGRECTANGLE(X1=20,Y1=98,HEIGHT=3,WIDTH=20,DISPLAY="FILL",DRAWSPACE="LAYOUTPERCENT",FILLCOLOR="white")
%SGTEXT(LABEL="Se",WIDTH=100,DRAWSPACE="LAYOUTPERCENT",TEXTSIZE=9,X1=22,Y1=97.6,FILLCOLOR="white",FILLTRANSPARENCY=1)
%SGTEXTCONT(LABEL="tosa",TEXTSIZE=9,TEXTSTYLE="ITALIC")

run;

proc sgpanel data=sashelp.iris sganno=sganno;	
  panelby species / novarname columns=3 headerbackcolor=white;
  reg x=sepallength y=sepalwidth;
run;

Ksharp_0-1669973225697.png

 

shishiwakamaru
Calcite | Level 5
Exactly what I want!
(I did try several X1, Y1, HEIGHT numbers to find the perfect spot.つ﹏⊂)

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

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
  • 2 replies
  • 632 views
  • 0 likes
  • 2 in conversation