<?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: Preserve graph labelattrs for labels using unicode? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Preserve-graph-labelattrs-for-labels-using-unicode/m-p/541510#M17877</link>
    <description>&lt;P&gt;How does it look if you set the OUTPUTFMT=PNG?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;graphics&lt;/SPAN&gt; on &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; imagename&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Figure" outputfmt=png&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Mar 2019 18:11:31 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2019-03-08T18:11:31Z</dc:date>
    <item>
      <title>Preserve graph labelattrs for labels using unicode?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Preserve-graph-labelattrs-for-labels-using-unicode/m-p/541474#M17874</link>
      <description>&lt;P&gt;When using unicode in a graph label, I am losing the effect of weight=bold and the font is not what I expect.&amp;nbsp; This may just apply to ODS RTF (which I'm not sure).&amp;nbsp; See this sample code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file = "H:\Figure.rtf";
ods graphics on / imagename="Figure";

title ;
footnote ;
proc sgplot data=sashelp.baseball;
scatter x=logsalary y=crhome/group=league;
xaxis label="Log(*ESC*){unicode '2081'x}(*ESC*){unicode '2080'x} Salary" 
type=log logstyle=logexpand labelattrs=(weight=bold family='arial');
yaxis label="Home Runs" labelattrs=(weight=bold family='arial');
keylegend;
;
run;
ods graphics off;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&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="unicode_graph.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27776i41550B4C19CE2D8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="unicode_graph.png" alt="unicode_graph.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The y-axis label is the correct font, is bold, and is vector quality.&amp;nbsp; The x-axis, using unicode, is not preserving any of those attributes (though it is hard to tell if the font is correct- it looks the same using family='arial unicode ms') .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a related note, my figure legend is not vector quality, with or without unicode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any known solutions?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 17:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Preserve-graph-labelattrs-for-labels-using-unicode/m-p/541474#M17874</guid>
      <dc:creator>bmjepson</dc:creator>
      <dc:date>2019-03-08T17:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve graph labelattrs for labels using unicode?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Preserve-graph-labelattrs-for-labels-using-unicode/m-p/541510#M17877</link>
      <description>&lt;P&gt;How does it look if you set the OUTPUTFMT=PNG?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;graphics&lt;/SPAN&gt; on &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; imagename&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Figure" outputfmt=png&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Mar 2019 18:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Preserve-graph-labelattrs-for-labels-using-unicode/m-p/541510#M17877</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-03-08T18:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve graph labelattrs for labels using unicode?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Preserve-graph-labelattrs-for-labels-using-unicode/m-p/541558#M17878</link>
      <description>&lt;P&gt;It cleaned up the vector quality issue, bold and font, but I lost the subscripts from the unicode.&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="figure2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27782i3428FA1EAF5E3651/image-size/large?v=v2&amp;amp;px=999" role="button" title="figure2.png" alt="figure2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 19:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Preserve-graph-labelattrs-for-labels-using-unicode/m-p/541558#M17878</guid>
      <dc:creator>bmjepson</dc:creator>
      <dc:date>2019-03-08T19:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve graph labelattrs for labels using unicode?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Preserve-graph-labelattrs-for-labels-using-unicode/m-p/556529#M18090</link>
      <description>&lt;P&gt;This solution worked perfectly. Thanks Dan!&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 19:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Preserve-graph-labelattrs-for-labels-using-unicode/m-p/556529#M18090</guid>
      <dc:creator>bmjepson</dc:creator>
      <dc:date>2019-05-06T19:20:00Z</dc:date>
    </item>
  </channel>
</rss>

