<?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 PROC SGPLOT: Changing Font in Body of Plot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-Changing-Font-in-Body-of-Plot/m-p/793656#M254391</link>
    <description>&lt;P&gt;I need to change the font used in the body of a plot created by PROC SGPLOT.&amp;nbsp; Documentation says to use LABELATTRS tor the axis labels, which is where I will start.&amp;nbsp; Maybe I am putting it in the wrong place.&amp;nbsp; Any ideas?&amp;nbsp; This one is a box plot.&amp;nbsp; I will also have to do this on a line plot.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;          proc sgplot data=ft2 nowall;
               vbox change / extreme category = treatment  clusterwidth = 0.5  ;
               xaxis display = (noline nolabel noticks) discreteorder = data labelattrs=(family=courier size=8);
               yaxis values = (-20 to 8 by 1);
               run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Feb 2022 04:58:36 GMT</pubDate>
    <dc:creator>davehalltwp</dc:creator>
    <dc:date>2022-02-01T04:58:36Z</dc:date>
    <item>
      <title>PROC SGPLOT: Changing Font in Body of Plot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-Changing-Font-in-Body-of-Plot/m-p/793656#M254391</link>
      <description>&lt;P&gt;I need to change the font used in the body of a plot created by PROC SGPLOT.&amp;nbsp; Documentation says to use LABELATTRS tor the axis labels, which is where I will start.&amp;nbsp; Maybe I am putting it in the wrong place.&amp;nbsp; Any ideas?&amp;nbsp; This one is a box plot.&amp;nbsp; I will also have to do this on a line plot.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;          proc sgplot data=ft2 nowall;
               vbox change / extreme category = treatment  clusterwidth = 0.5  ;
               xaxis display = (noline nolabel noticks) discreteorder = data labelattrs=(family=courier size=8);
               yaxis values = (-20 to 8 by 1);
               run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 04:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-Changing-Font-in-Body-of-Plot/m-p/793656#M254391</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2022-02-01T04:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT: Changing Font in Body of Plot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-Changing-Font-in-Body-of-Plot/m-p/793682#M254405</link>
      <description>&lt;P&gt;Where do you want to change font, exactly?&lt;/P&gt;
&lt;P&gt;Either use code with a SAS supplied data set or provide example data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to provide the name of the font pretty much as it appears in the Windows Font folder such as:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=sashelp.class;
   vbox height /category=sex ;
   xaxis labelattrs=(family="Courier New Regular" size=15pt color=red);
run;&lt;/PRE&gt;
&lt;P&gt;Note the name in quotes.&lt;/P&gt;
&lt;P&gt;This only changes the axis label value of "Sex".&amp;nbsp; However your code is specifically excluding displaying the label (the display= options) so the Labelattrs has nothing to apply the font to.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 08:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-Changing-Font-in-Body-of-Plot/m-p/793682#M254405</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-01T08:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT: Changing Font in Body of Plot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-Changing-Font-in-Body-of-Plot/m-p/793765#M254460</link>
      <description>Thank you BallardW. Using the proper font name and enclosing it in quotes did the trick for axis labels (I also had to brush up on font names in general). And the VALUEATTRS option worked in a similar to adjust the font of the label of each data point on the box plots.&lt;BR /&gt;&lt;BR /&gt;Thanks much...</description>
      <pubDate>Tue, 01 Feb 2022 14:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-Changing-Font-in-Body-of-Plot/m-p/793765#M254460</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2022-02-01T14:08:52Z</dc:date>
    </item>
  </channel>
</rss>

