DATA Step, Macro, Functions and more

how to add a superscript on y axis label?

Reply
Occasional Contributor
Posts: 12

how to add a superscript on y axis label?

[ Edited ]

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.

Trusted Advisor
Posts: 1,137

Re: how to add a superscript on y axis label?

Could you please try

yaxis label="10^{super -3}"
Thanks,
Jag
Ask a Question
Discussion stats
  • 1 reply
  • 343 views
  • 0 likes
  • 2 in conversation