<?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: Special characters in axis label in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/68335#M2385</link>
    <description>Here is yet another possibility.  If you are running SAS 9.2, here's a trick you can use with the SG procedures.  You can inline unicode character directly in the string.  Taking Andre's example:&lt;BR /&gt;
&lt;BR /&gt;
proc sgplot data=sashelp.class;&lt;BR /&gt;
xaxis min=10 max=20 label="La (*ESC*){unicode mu} des ados";&lt;BR /&gt;
scatter x=weight y=age;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Notice that you do not have to change fonts in the middle of the label.</description>
    <pubDate>Tue, 01 Sep 2009 14:39:11 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2009-09-01T14:39:11Z</dc:date>
    <item>
      <title>Special characters in axis label</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/68330#M2380</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I want to write for example µ in axis labels but it doesn't work.&lt;BR /&gt;
&lt;BR /&gt;
I keep the label in a macro variable and if I do the instruction put in order to see it in the log, the  µ is written but on the graph, there is only °&lt;BR /&gt;
&lt;BR /&gt;
Here is my code if it can help you :&lt;BR /&gt;
goptions reset=all ftext=sasmonospace htext=1 ctext=black devmap=winansi keymap=winansi;&lt;BR /&gt;
&lt;B&gt;axis1 order=&amp;amp;min to &amp;amp;max label=("&amp;amp;x_lab ");&lt;BR /&gt;
axis2 label=(angle=90 "&amp;amp;y_lab ")  order=&amp;amp;min to &amp;amp;max;&lt;/B&gt;&lt;BR /&gt;
symbol1 interpol=join value=none color=blue line=20;&lt;BR /&gt;
symbol2 interpol=join value=none color=red line=1;&lt;BR /&gt;
symbol3 interpol=none value='Circle' color=black;&lt;BR /&gt;
&lt;BR /&gt;
legend1 label=none&lt;BR /&gt;
            mode=reserve&lt;BR /&gt;
        position=(bottom center outside)&lt;BR /&gt;
        offset=(0.5,)&lt;BR /&gt;
        across=3&lt;BR /&gt;
            shape=line(4)&lt;BR /&gt;
        value=('Perfect Concordance Line' 'Observed Concordance Line' ' ');&lt;BR /&gt;
&lt;BR /&gt;
%macro graphe(yf,xf,minf,maxf);&lt;BR /&gt;
%if &amp;amp;minf=0 or &amp;amp;maxf=0 %then %do;&lt;BR /&gt;
proc gplot data=graphe_finale;&lt;BR /&gt;
plot &amp;amp;yf*&amp;amp;xf Ybissector*i Yobserved*i/ overlay haxis=axis1 vaxis=axis2 legend=legend1 vminor=0 hminor=0 annotate=annoter ;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
%end;&lt;BR /&gt;
%else %do;&lt;BR /&gt;
proc gplot data=graphe_finale;&lt;BR /&gt;
plot Ybissector*i Yobserved*i  &amp;amp;yf*&amp;amp;xf/ overlay haxis=axis1 vaxis=axis2 legend=legend1  href=0 vref=0 vminor=0 hminor=0 annotate=annoter ;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
%end;&lt;BR /&gt;
%mend graphe;&lt;BR /&gt;
%graphe(&amp;amp;Y,&amp;amp;X,&amp;amp;min,&amp;amp;max)&lt;BR /&gt;
&lt;BR /&gt;
By advance, thanks a lot,&lt;BR /&gt;
&lt;BR /&gt;
Céline</description>
      <pubDate>Mon, 31 Aug 2009 15:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/68330#M2380</guid>
      <dc:creator>Celine_France</dc:creator>
      <dc:date>2009-08-31T15:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters in axis label</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/68331#M2381</link>
      <description>Hey Celine,&lt;BR /&gt;
&lt;BR /&gt;
Can you give an example of the string assigned to &amp;amp;x_lab or &amp;amp;y_lab?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan</description>
      <pubDate>Mon, 31 Aug 2009 19:29:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/68331#M2381</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2009-08-31T19:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters in axis label</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/68332#M2382</link>
      <description>Céline&lt;BR /&gt;
In sas graph a greek letter is possible&lt;BR /&gt;
see&lt;BR /&gt;
&lt;A href="http://www.listserv.uga.edu/cgi-bin/wa?A2=ind0806A&amp;amp;L=sas-l&amp;amp;P=R22438&amp;amp;D=1&amp;amp;H=0&amp;amp;O=D&amp;amp;T=1" target="_blank"&gt;http://www.listserv.uga.edu/cgi-bin/wa?A2=ind0806A&amp;amp;L=sas-l&amp;amp;P=R22438&amp;amp;D=1&amp;amp;H=0&amp;amp;O=D&amp;amp;T=1&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
What i have never tested is their use&lt;BR /&gt;
inside the axis statement due to another general ftext choice&lt;BR /&gt;
I never use sasmonospace into sas graphs!&lt;BR /&gt;
&lt;BR /&gt;
Another question is related to your graph : alone or inside an ods destination?&lt;BR /&gt;
&lt;BR /&gt;
Andre</description>
      <pubDate>Mon, 31 Aug 2009 21:30:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/68332#M2382</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2009-08-31T21:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters in axis label</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/68333#M2383</link>
      <description>All valid comments above:&lt;BR /&gt;
- what is the value of x_lab?&lt;BR /&gt;
- do you use ODS?&lt;BR /&gt;
- you must use another font.&lt;BR /&gt;
&lt;BR /&gt;
You can assess fonts using:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
goption ftext=greek;&lt;BR /&gt;
*goption ftext='arial';&lt;BR /&gt;
*goption ftext='verdana/bo';&lt;BR /&gt;
&lt;BR /&gt;
proc gslide;&lt;BR /&gt;
note height=2 "%sysfunc(getoption(ftext))";&lt;BR /&gt;
%macro t;&lt;BR /&gt;
%do i=32 %to 255 %by 32;&lt;BR /&gt;
note height=2 %do j=&amp;amp;i %to %eval(&amp;amp;i+31); "%sysfunc(byte(&amp;amp;j))" %end;  ;&lt;BR /&gt;
%end;&lt;BR /&gt;
%mend;%t&lt;BR /&gt;
run;&lt;BR /&gt;
quit;</description>
      <pubDate>Tue, 01 Sep 2009 05:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/68333#M2383</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-09-01T05:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters in axis label</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/68334#M2384</link>
      <description>Celine&lt;BR /&gt;
(now from work)&lt;BR /&gt;
&lt;BR /&gt;
See it is working&lt;BR /&gt;
&lt;BR /&gt;
ods listing close; &lt;BR /&gt;
ods rtf file="d:\temp\greekfigure.rtf" style=minimal;&lt;BR /&gt;
&lt;BR /&gt;
goptions device=png rotate=landscape gsflen=132 border htitle=1 htext=1;&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=sashelp.class;&lt;BR /&gt;
title2 font=cgreek height=1.5 'a b c d e f g h i j k l m n o p q r s t u v w x y z';&lt;BR /&gt;
title3 font=cgreek height=1.5 'A B C D E F G H I J K L M N O P Q R S T U V W X Y Z';&lt;BR /&gt;
axis1  order=10 to 20 label=(font=swiss "La  "  font=greek  " m" font=swiss "   des ados");&lt;BR /&gt;
plot age * weight/haxis=axis1;&lt;BR /&gt;
run; quit;&lt;BR /&gt;
 ods rtf close; ods listing;</description>
      <pubDate>Tue, 01 Sep 2009 07:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/68334#M2384</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2009-09-01T07:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters in axis label</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/68335#M2385</link>
      <description>Here is yet another possibility.  If you are running SAS 9.2, here's a trick you can use with the SG procedures.  You can inline unicode character directly in the string.  Taking Andre's example:&lt;BR /&gt;
&lt;BR /&gt;
proc sgplot data=sashelp.class;&lt;BR /&gt;
xaxis min=10 max=20 label="La (*ESC*){unicode mu} des ados";&lt;BR /&gt;
scatter x=weight y=age;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Notice that you do not have to change fonts in the middle of the label.</description>
      <pubDate>Tue, 01 Sep 2009 14:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/68335#M2385</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2009-09-01T14:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters in axis label</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/580764#M18678</link>
      <description>&lt;P&gt;Here's one way to do it in SAS/Graph gplot axis:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;goptions ftext='albany amt' htext=12pt;&lt;BR /&gt;axis1 label=("axis label text, with Mu symbol: %SYSFUNC(BYTE(181),$1.) ");&lt;BR /&gt;proc gplot data=sashelp.class;&lt;BR /&gt;plot height*weight / haxis=axis1;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gplot5.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31695i92EADB7EE4DF5B1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="gplot5.png" alt="gplot5.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 11:34:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Special-characters-in-axis-label/m-p/580764#M18678</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2019-08-13T11:34:21Z</dc:date>
    </item>
  </channel>
</rss>

