BookmarkSubscribeRSS Feed
Abishekaa
Obsidian | Level 7

What is the unicode to add a label with superscript 10 to the power 6?

 

2 REPLIES 2
DanH_sas
SAS Super FREQ

The Unicode value for superscript 6 is 0x2076. However, you need to be sure you're using a "full-featured" Unicode font to show it, as most fonts do not contain that glyph. I would using "Arial Unicode MS" for san-serif text and "Times New Roman Uni" for serif text. Setting 10^6 on an axis label (for example) would look something like the following (on the correct axis statement):

 

label="10(*ESC*){unicode '2076'x}"

 

The INSET statement and annotation text supports using superscripts and subscript without using the Unicode values. You can use {sup '6'} in those cases.

 

Hope this helps!

Dan

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="XXXXX(*ESC*){sup '6'}"; output;
 x1=2.5;  y1=50;rotate=90;label="YYYY(*ESC*){sub '6'}"; output;
 run;
/*****画散点图*****/
proc sgplot data=sashelp.class sganno=_anno noautolegend ;   
scatter x=weight y=height/group=sex datalabel=name;   
xaxis label=' ';
yaxis label=' ';
run;

Ksharp_0-1684412894546.png

 

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 266 views
  • 4 likes
  • 3 in conversation