<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Superscript in yaxis label in PROC SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Superscript-in-yaxis-label-in-PROC-SGPLOT/m-p/950389#M25133</link>
    <description>&lt;P&gt;For an axis label, you have to use Unicode characters to do it. In your case, this would look like the following:&lt;/P&gt;
&lt;PRE&gt;yaxis label="Unkraut-TM (kg ha^{unicode '207B'x}^{unicode '00B9'x})";&lt;/PRE&gt;
&lt;P&gt;If for some reason the negative does not appear (you see a box instead), you might need to override the font via the LABELATTRS option to be a font like "Arial Unicode MS" that is a more "full-featured" Unicode font. Hope this helps!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2024 21:11:02 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2024-11-11T21:11:02Z</dc:date>
    <item>
      <title>Superscript in yaxis label in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Superscript-in-yaxis-label-in-PROC-SGPLOT/m-p/950387#M25132</link>
      <description>&lt;P&gt;Dear SAS community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm trying to put a superscript -1 in my yaxis label in the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;ods escapechar='^';
proc sgplot data=Unkraut_TM_Bhdlg_N0_MT1 ;       
   vbar Behandlung / response=Median                             
        stat=mean
        group=Behandlung
        groupdisplay=cluster;
		yaxis label="Unkraut-TM (kg ha^{super -1})";                          
run;&lt;/PRE&gt;&lt;P&gt;I've tried several versions of it:&lt;BR /&gt;yaxis label="Unkraut-TM (kg ha^{-1})";&lt;/P&gt;&lt;P&gt;yaxis label="Unkraut-TM (kg ha^{sup -1})";&lt;/P&gt;&lt;P&gt;yaxis label="Unkraut-TM (kg ha^{super -1})";&lt;BR /&gt;yaxis label="Unkraut-TM (kg ha(*ESC*){sup -1})";&lt;BR /&gt;yaxis label="Unkraut-TM (kg ha(*ESC*){super -1})";&lt;BR /&gt;yaxis label="Unkraut-TM (kg ha&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)";&lt;BR /&gt;yaxis label="Unkraut-TM (kg ha&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;)";&lt;BR /&gt;yaxis label="Unkraut-TM (kg ha⁻¹)";&lt;BR /&gt;&lt;BR /&gt;None of it did work.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone help me with the simplest possible solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 19:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Superscript-in-yaxis-label-in-PROC-SGPLOT/m-p/950387#M25132</guid>
      <dc:creator>Abdus-Salaam</dc:creator>
      <dc:date>2024-11-11T19:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Superscript in yaxis label in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Superscript-in-yaxis-label-in-PROC-SGPLOT/m-p/950389#M25133</link>
      <description>&lt;P&gt;For an axis label, you have to use Unicode characters to do it. In your case, this would look like the following:&lt;/P&gt;
&lt;PRE&gt;yaxis label="Unkraut-TM (kg ha^{unicode '207B'x}^{unicode '00B9'x})";&lt;/PRE&gt;
&lt;P&gt;If for some reason the negative does not appear (you see a box instead), you might need to override the font via the LABELATTRS option to be a font like "Arial Unicode MS" that is a more "full-featured" Unicode font. Hope this helps!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 21:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Superscript-in-yaxis-label-in-PROC-SGPLOT/m-p/950389#M25133</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2024-11-11T21:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Superscript in yaxis label in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Superscript-in-yaxis-label-in-PROC-SGPLOT/m-p/950417#M25134</link>
      <description>&lt;P&gt;Here is just once for all ,if you can't find a corresponding UNICODE code for superscript.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let label1=体重(*ESC*){sup 'mw -1'}  ;
%let label2=身高(*ESC*){sub 'mw -1'} ;


/*用于加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="&amp;amp;label1."; output;
 x1=2.5;  y1=50;rotate=90;label="&amp;amp;label2."; output;
 run;
/*****画散点图*****/
proc sgplot data=sashelp.class sganno=_anno;   
scatter x=weight y=height;   
xaxis label=' ';
yaxis label=' ';
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1731375317914.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102096i50E44F6E24BCB4F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1731375317914.png" alt="Ksharp_0-1731375317914.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 01:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Superscript-in-yaxis-label-in-PROC-SGPLOT/m-p/950417#M25134</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-11-12T01:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Superscript in yaxis label in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Superscript-in-yaxis-label-in-PROC-SGPLOT/m-p/950467#M25135</link>
      <description>&lt;P&gt;Thank you really much for the help, it worked.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 17:08:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Superscript-in-yaxis-label-in-PROC-SGPLOT/m-p/950467#M25135</guid>
      <dc:creator>Abdus-Salaam</dc:creator>
      <dc:date>2024-11-12T17:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Superscript in yaxis label in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Superscript-in-yaxis-label-in-PROC-SGPLOT/m-p/950468#M25136</link>
      <description>&lt;P&gt;Thank you for the answer.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 17:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Superscript-in-yaxis-label-in-PROC-SGPLOT/m-p/950468#M25136</guid>
      <dc:creator>Abdus-Salaam</dc:creator>
      <dc:date>2024-11-12T17:09:05Z</dc:date>
    </item>
  </channel>
</rss>

