<?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: How to change font size/style for x-axis label in SGPLOT? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-font-size-style-for-x-axis-label-in-SGPLOT/m-p/667347#M199814</link>
    <description>&lt;P&gt;It works fine for me.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options papersize=LETTER orientation = landscape nonumber nodate topmargin = 0.5 in bottommargin = 0.5 in
        rightmargin = 0.5 in leftmargin=0.5 in ;

ods graphics on/border=on width=9.4in height=5.8in ;
ods listing gpath="&amp;amp;wdir";
ods rtf file ="&amp;amp;wdir/d.rtf" startpage = yes nogtitle nogfootnote ;

proc sgplot data=SASHELP.CLASS pad=(bottom=25% left=20%) uniform=all ;
  vbar AGE / response=WEIGHT group=SEX name='a'
             datalabel datalabelattrs=(family="courier new" size=9) dataskin=matte ;
  keylegend 'a' / location=outside position=bottom valueattrs=(family="courier new" size=9);
  xaxis display=(noticks) label='aa' labelattrs=(family="courier new" size=9);
  yaxis display=all labelattrs=(family="courier new" size=9) offsetmin=0.02 offsetmax=0.1 thresholdmin=1 thresholdmax=1
        label="bb" values=(0 to 42 by 5) ;
run;

ods rtf close;
ods graphics on/reset=all;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisNZ_0-1594092983648.png" style="width: 737px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46957i9ADD5568D547348E/image-dimensions/737x455?v=v2" width="737" height="455" role="button" title="ChrisNZ_0-1594092983648.png" alt="ChrisNZ_0-1594092983648.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please supply code we can run so we can replicate. And supply formatted code.&lt;/P&gt;
&lt;P&gt;I did not see your graph as you provided it in a WORD file.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 03:39:28 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-07-07T03:39:28Z</dc:date>
    <item>
      <title>How to change font size/style for x-axis label in SGPLOT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-font-size-style-for-x-axis-label-in-SGPLOT/m-p/667341#M199811</link>
      <description>&lt;P&gt;In the attached figure, I would like to have the font size and style of x-axis labels to be the same with others (like y-axis, etc)&lt;/P&gt;&lt;P&gt;(Circled in the attached) I use "family="courier new" size=9 for all. But it seems not working on the mentioned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program code is:&lt;/P&gt;&lt;P&gt;options papersize=LETTER orientation = landscape nonumber nodate topmargin = 0.5 in bottommargin = 0.5 in&lt;BR /&gt;rightmargin = 0.5 in leftmargin=0.5 in ;&lt;/P&gt;&lt;P&gt;ods graphics on/border=on width=9.4in height=5.8in ;&lt;/P&gt;&lt;P&gt;ods listing gpath="&amp;amp;path./dev/programs/figures/output";&lt;BR /&gt;ods rtf file ="&amp;amp;path./dev/programs/figures/output/&amp;amp;pgmnum.(&amp;amp;pgmname.).rtf" startpage = yes nogtitle nogfootnote ;&lt;/P&gt;&lt;P&gt;proc sgplot data=all pad=(bottom=25% left=20%) uniform=all ;&lt;BR /&gt;where trtp~='';&lt;BR /&gt;*format typen type. trtan trt.;&lt;BR /&gt;vbar PARAM / response=percent group=trtpn groupdisplay=cluster name='a'&lt;BR /&gt;datalabel datalabelattrs=(family="courier new" size=9) dataskin=matte ;&lt;BR /&gt;keylegend 'a' / location=outside position=bottom valueattrs=(family="courier new" size=9);&lt;BR /&gt;xaxis display=(noticks) label='Treatment' LABELATTRS=(family="courier new" size=9);&lt;BR /&gt;yaxis display=all LABELATTRS=(family="courier new" size=9) offsetmin=0.02 offsetmax=0.1 thresholdmin=1 thresholdmax=1&lt;BR /&gt;label="Response Rate (%)" values=(0 to 42 by 5) ;&lt;BR /&gt;format trtpn trt.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics on/reset=all;&lt;BR /&gt;ods rtf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 01:48:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-font-size-style-for-x-axis-label-in-SGPLOT/m-p/667341#M199811</guid>
      <dc:creator>dantsui</dc:creator>
      <dc:date>2020-07-07T01:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to change font size/style for x-axis label in SGPLOT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-font-size-style-for-x-axis-label-in-SGPLOT/m-p/667347#M199814</link>
      <description>&lt;P&gt;It works fine for me.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options papersize=LETTER orientation = landscape nonumber nodate topmargin = 0.5 in bottommargin = 0.5 in
        rightmargin = 0.5 in leftmargin=0.5 in ;

ods graphics on/border=on width=9.4in height=5.8in ;
ods listing gpath="&amp;amp;wdir";
ods rtf file ="&amp;amp;wdir/d.rtf" startpage = yes nogtitle nogfootnote ;

proc sgplot data=SASHELP.CLASS pad=(bottom=25% left=20%) uniform=all ;
  vbar AGE / response=WEIGHT group=SEX name='a'
             datalabel datalabelattrs=(family="courier new" size=9) dataskin=matte ;
  keylegend 'a' / location=outside position=bottom valueattrs=(family="courier new" size=9);
  xaxis display=(noticks) label='aa' labelattrs=(family="courier new" size=9);
  yaxis display=all labelattrs=(family="courier new" size=9) offsetmin=0.02 offsetmax=0.1 thresholdmin=1 thresholdmax=1
        label="bb" values=(0 to 42 by 5) ;
run;

ods rtf close;
ods graphics on/reset=all;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisNZ_0-1594092983648.png" style="width: 737px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46957i9ADD5568D547348E/image-dimensions/737x455?v=v2" width="737" height="455" role="button" title="ChrisNZ_0-1594092983648.png" alt="ChrisNZ_0-1594092983648.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please supply code we can run so we can replicate. And supply formatted code.&lt;/P&gt;
&lt;P&gt;I did not see your graph as you provided it in a WORD file.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 03:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-font-size-style-for-x-axis-label-in-SGPLOT/m-p/667347#M199814</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-07T03:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to change font size/style for x-axis label in SGPLOT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-font-size-style-for-x-axis-label-in-SGPLOT/m-p/667351#M199818</link>
      <description>&lt;P&gt;I have found out the solution:&lt;/P&gt;&lt;P&gt;valueattrs will control the value text...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xaxis display=(noticks) label='Treatment' LABELATTRS=(family="courier new" size=9)&lt;BR /&gt;valueattrs=(family="courier new" size=9);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 03:47:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-font-size-style-for-x-axis-label-in-SGPLOT/m-p/667351#M199818</guid>
      <dc:creator>dantsui</dc:creator>
      <dc:date>2020-07-07T03:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to change font size/style for x-axis label in SGPLOT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-font-size-style-for-x-axis-label-in-SGPLOT/m-p/667356#M199820</link>
      <description>&lt;P&gt;You post title says you want to format the label.&lt;/P&gt;
&lt;P&gt;Option VALUEATTRS formats the values.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 05:26:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-font-size-style-for-x-axis-label-in-SGPLOT/m-p/667356#M199820</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-07T05:26:54Z</dc:date>
    </item>
  </channel>
</rss>

