BookmarkSubscribeRSS Feed
sky1
Calcite | Level 5

I tried to add 10^(-3) to the label of y axis. I want to get rid of "^" and make (-3) be superscript. I used:

ods escapechar='^';

Proc sgplot……

yaxis label="10^{unicode '00b3'x}"

which allows me to add superscript (3). But I cannot add superscript (-3). What is the Unicode for “superscript (-3) in SAS? Thanks.

3 REPLIES 3
Jagadishkatam
Amethyst | Level 16
Could you please try

yaxis label="10^{super -3}"
Thanks,
Jag
kivester
Obsidian | Level 7

Did you ever find the solution to this problem? I am in exactly the same boat, so far none of the proposed fixes are working for me!

 

Ksharp
Super User
/*用于加X轴Y轴标签的上下标*/
data _anno;
length label $ 200;
 drawspace="layoutpercent"; function="text"; textweight="normal"; textsize=12;textcolor="black"; width=200;
 x1=50; y1=2.5;label="体重(*ESC*){sub 'mw'}"; output;
 x1=2.5;  y1=50;rotate=90;label="身高(*ESC*){sup 'mw'}"; output;
 run;
/*****画散点图*****/
proc sgplot data=sashelp.class sganno=_anno;   
scatter x=weight y=height;   
xaxis label=' ';
yaxis label=' ';
run;

Ksharp_0-1675160290597.png

 

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
  • 3 replies
  • 2731 views
  • 0 likes
  • 4 in conversation