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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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