Graphics Programming

Data visualization using SAS programming, including ODS Graphics and SAS/GRAPH. Charts, plots, maps, and more!
BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
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

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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