<?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 How to control the font, size  and color of X or Y lables and values in proc sgplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-control-the-font-size-and-color-of-X-or-Y-lables-and/m-p/325780#M11425</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been using "Proc gplot" a lot&amp;nbsp;to create SAS graphs. I can decide the font, size&amp;nbsp; and color of X or Y lables and values&amp;nbsp;by using statement below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;"axis2&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;label&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;h&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;' '&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;order&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;'15Jan2010'd&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;to&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;'15Dec2015'd&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; month) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;major&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;color&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=black &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;height&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1.5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;pt&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;minor&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;none &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;value&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;height&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1.5&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;color&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=gray) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;offset&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;);"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how to do the same things in "proc sgplot"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm really appreciative of any helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Ethan&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2017 19:32:16 GMT</pubDate>
    <dc:creator>t75wez1</dc:creator>
    <dc:date>2017-01-18T19:32:16Z</dc:date>
    <item>
      <title>How to control the font, size  and color of X or Y lables and values in proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-control-the-font-size-and-color-of-X-or-Y-lables-and/m-p/325780#M11425</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been using "Proc gplot" a lot&amp;nbsp;to create SAS graphs. I can decide the font, size&amp;nbsp; and color of X or Y lables and values&amp;nbsp;by using statement below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;"axis2&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;label&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;h&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;' '&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;order&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;'15Jan2010'd&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;to&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;'15Dec2015'd&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; month) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;major&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;color&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=black &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;height&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1.5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;pt&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;minor&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;none &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;value&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;height&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1.5&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;color&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=gray) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;offset&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;);"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how to do the same things in "proc sgplot"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm really appreciative of any helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Ethan&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 19:32:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-control-the-font-size-and-color-of-X-or-Y-lables-and/m-p/325780#M11425</guid>
      <dc:creator>t75wez1</dc:creator>
      <dc:date>2017-01-18T19:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the font, size  and color of X or Y lables and values in proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-control-the-font-size-and-color-of-X-or-Y-lables-and/m-p/325787#M11426</link>
      <description>&lt;P&gt;The axis statements for SGPLOT are inside of the procedure. For example, assuming your axis statement in your post would translate to something like the following for the X axis:&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=" language-sas"&gt;proc sgplot data=whatever;
xaxis display=(nolabel) values=('15Jan2010'd to '15Dec2015'd by month)
&amp;nbsp; valueattrs=(color=gray size=12pt) offsetmin=0.1 offsetmax=0.1;

...more statements...

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SGPLOT, there are up to four axis statements: XAXIS, YAXIS, X2AXIS, and Y2AXIS. Plots can be assigned to different axes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the axis statements: LABELATTRS=(color= family= size= weight= style=)&lt;/P&gt;
&lt;P&gt;VALUEATTRS (for the tick values) has the same options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2018 13:23:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-control-the-font-size-and-color-of-X-or-Y-lables-and/m-p/325787#M11426</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-10-15T13:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the font, size  and color of X or Y lables and values in proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-control-the-font-size-and-color-of-X-or-Y-lables-and/m-p/325791#M11427</link>
      <description>&lt;P&gt;Which version of SAS are you using? Options have changed significantly with each release related to the statistical graphs (SGPlot SGPanel SGrender).&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 19:57:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-control-the-font-size-and-color-of-X-or-Y-lables-and/m-p/325791#M11427</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-18T19:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the font, size  and color of X or Y lables and values in proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-control-the-font-size-and-color-of-X-or-Y-lables-and/m-p/325794#M11428</link>
      <description>&lt;P&gt;I have 9.3 1M2 and 9.4 1M3 loaded on two desktops.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-control-the-font-size-and-color-of-X-or-Y-lables-and/m-p/325794#M11428</guid>
      <dc:creator>t75wez1</dc:creator>
      <dc:date>2017-01-18T20:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the font, size  and color of X or Y lables and values in proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-control-the-font-size-and-color-of-X-or-Y-lables-and/m-p/325797#M11429</link>
      <description>&lt;P&gt;Thanks Dan.&lt;/P&gt;&lt;P&gt;But I still don't know how to change the font, size and color for label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-control-the-font-size-and-color-of-X-or-Y-lables-and/m-p/325797#M11429</guid>
      <dc:creator>t75wez1</dc:creator>
      <dc:date>2017-01-18T20:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the font, size  and color of X or Y lables and values in proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-control-the-font-size-and-color-of-X-or-Y-lables-and/m-p/325800#M11430</link>
      <description>&lt;P&gt;On the axis statements: LABELATTRS=(color= family= size= weight= style=)&lt;/P&gt;
&lt;P&gt;VALUEATTRS (for the tick values) has the same options.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-control-the-font-size-and-color-of-X-or-Y-lables-and/m-p/325800#M11430</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-01-18T20:16:53Z</dc:date>
    </item>
  </channel>
</rss>

