<?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: Formatting X and Y axis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-and-Y-axis/m-p/25472#M732</link>
    <description>if you look up the axis statement in SAS help, you will find a plethora of options to control the appearance of the axes.</description>
    <pubDate>Fri, 29 Oct 2010 17:57:31 GMT</pubDate>
    <dc:creator>Bill</dc:creator>
    <dc:date>2010-10-29T17:57:31Z</dc:date>
    <item>
      <title>Formatting X and Y axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-and-Y-axis/m-p/25471#M731</link>
      <description>Hi, I was trying to change the axises format (namely Thickness and font size) by modifying the default graph template. Can anyone suggest how could I do that? I am using Layout Overlay statements, but not sure which Options (or sub-options) may help. &lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Fri, 29 Oct 2010 17:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-and-Y-axis/m-p/25471#M731</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-10-29T17:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting X and Y axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-and-Y-axis/m-p/25472#M732</link>
      <description>if you look up the axis statement in SAS help, you will find a plethora of options to control the appearance of the axes.</description>
      <pubDate>Fri, 29 Oct 2010 17:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-and-Y-axis/m-p/25472#M732</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2010-10-29T17:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting X and Y axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-and-Y-axis/m-p/25473#M733</link>
      <description>While there may have several possibles ways to do it, but I am not sure where to start from.&lt;BR /&gt;
&lt;BR /&gt;
I was using the Statistical style template and was hoping there is an straightforward way to override the default settings. Any ideas if I can change it by adding an Options functions or if I have to define my own style.&lt;BR /&gt;
&lt;BR /&gt;
Many thanks!</description>
      <pubDate>Fri, 29 Oct 2010 19:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-and-Y-axis/m-p/25473#M733</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-10-29T19:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting X and Y axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-and-Y-axis/m-p/25474#M734</link>
      <description>Lots of very useful (and free!) information and SAS-hosted DOC on the Support &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt; website.  Some creative searches either using the website's SEARCH box or Google will yield results for your review.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
statistical style template site:sas.com</description>
      <pubDate>Sat, 30 Oct 2010 15:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-and-Y-axis/m-p/25474#M734</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-10-30T15:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting X and Y axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-and-Y-axis/m-p/25475#M735</link>
      <description>Hi:&lt;BR /&gt;
  You can either change the style settings in the Graph Template Language for using the XAXISOPTS and YAXISOPTS statements (and other statements for changing text attributes, such as in the label and data values). Documentation here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/grstatug/62464/HTML/default/n1f71f6e9v037an1jy274v66z4r1.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatug/62464/HTML/default/n1f71f6e9v037an1jy274v66z4r1.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/grstatug/62464/HTML/default/p1b7qx0s2cynrgn1fy2ugk5rz2ek.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatug/62464/HTML/default/p1b7qx0s2cynrgn1fy2ugk5rz2ek.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/grstatug/62464/HTML/default/p1wp0lm93sf0kan1266430ixhbu1.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatug/62464/HTML/default/p1wp0lm93sf0kan1266430ixhbu1.htm&lt;/A&gt;&lt;BR /&gt;
                   &lt;BR /&gt;
OR you can alter the style template used for creating your output. &lt;BR /&gt;
&lt;BR /&gt;
If you have no conflicting settings in your Graph Template, then the style settings in the style template will be used. In order to change your style template, you will need to know which Graph style element to change. Luckily, you can ALSO find this information in the documentation:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/grstatug/62464/HTML/default/p18c2hn0ybnntyn1t6aitke3f0l6.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatug/62464/HTML/default/p18c2hn0ybnntyn1t6aitke3f0l6.htm&lt;/A&gt;&lt;BR /&gt;
       &lt;BR /&gt;
and you will see in the above doc that the elements of interest are: GraphAxisLines, GraphValueText, GraphLabelText and GraphDataText (to name just a few)&lt;BR /&gt;
 &lt;BR /&gt;
To get you started with style templates, you might want to search for user group papers on creating style templates. With the recent introduction of ODS GRAPHICS, there are quite a few examples out there of creating custom style templates for use with ODS GRAPHICS.&lt;BR /&gt;
 &lt;BR /&gt;
The example below uses a custom STYLE template with SGPLOT. Every style element is a different color and every font is either a different color, a different font or a different size. So you should be able to figure out which style elements are controlling which pieces of the output -- based on visual clues.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods path work.tmp(update) &lt;BR /&gt;
         sasuser.templat(update)&lt;BR /&gt;
         sashelp.tmplmst(read);&lt;BR /&gt;
      &lt;BR /&gt;
proc template;&lt;BR /&gt;
  define style styles.thick;&lt;BR /&gt;
  parent=styles.statistical;&lt;BR /&gt;
      class GraphFonts   /  &lt;BR /&gt;
         'GraphDataFont' = ("Courier New, &lt;SERIF&gt;",7pt) &lt;BR /&gt;
         'GraphValueFont' = ("Helvetica, &lt;MTSANS-SERIF&gt;",11pt)     &lt;BR /&gt;
         'GraphLabelFont' = ("Helvetica, &lt;MTSANS-SERIF&gt;",9pt,bold italic)        &lt;BR /&gt;
         'GraphTitleFont' = ("Courier New, &lt;SERIF&gt;",12pt,bold);  &lt;BR /&gt;
            &lt;BR /&gt;
      class GraphFit /     &lt;BR /&gt;
         linethickness = 5px   &lt;BR /&gt;
         contrastcolor = pink; &lt;BR /&gt;
          &lt;BR /&gt;
      class GraphAxisLines /          &lt;BR /&gt;
         linethickness = 6px           &lt;BR /&gt;
         contrastcolor = red; &lt;BR /&gt;
          &lt;BR /&gt;
      class GraphDataText /        &lt;BR /&gt;
         font = GraphFonts("GraphDataFont")      &lt;BR /&gt;
         color = purple;  &lt;BR /&gt;
          &lt;BR /&gt;
      class GraphLabelText /        &lt;BR /&gt;
         font = GraphFonts("GraphLabelFont")      &lt;BR /&gt;
         color = green;  &lt;BR /&gt;
             &lt;BR /&gt;
      class GraphValueText /&lt;BR /&gt;
         font = GraphFonts("GraphValueFont")&lt;BR /&gt;
         color=blue; &lt;BR /&gt;
        &lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
         &lt;BR /&gt;
** Make variable to only label certain cholesterol levels with;&lt;BR /&gt;
** the gender (instead of labelling every data point).;&lt;BR /&gt;
data heart;&lt;BR /&gt;
  set sashelp.heart;&lt;BR /&gt;
  if cholesterol le 125 then labl = sex;&lt;BR /&gt;
  else if cholesterol ge 400 then labl=sex;&lt;BR /&gt;
  else labl=' ';&lt;BR /&gt;
run;&lt;BR /&gt;
       &lt;BR /&gt;
ods listing style=styles.thick;&lt;BR /&gt;
       &lt;BR /&gt;
ods html path='.' (url=none)&lt;BR /&gt;
         file='usethick.html' style=styles.thick; &lt;BR /&gt;
proc sgplot data=heart;&lt;BR /&gt;
  title '1) Changing Attributes with a Style';&lt;BR /&gt;
  reg y = ageatdeath x=cholesterol/ clm datalabel=labl;&lt;BR /&gt;
  yaxis values=(60 to 95 by 5);&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]&lt;/SERIF&gt;&lt;/MTSANS-SERIF&gt;&lt;/MTSANS-SERIF&gt;&lt;/SERIF&gt;</description>
      <pubDate>Sat, 30 Oct 2010 18:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-and-Y-axis/m-p/25475#M735</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-10-30T18:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting X and Y axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-and-Y-axis/m-p/25476#M736</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I usually this template to increase the Font Size of the axis titles and values.&lt;BR /&gt;
&lt;BR /&gt;
proc template;&lt;BR /&gt;
define style MyStyleDefault;&lt;BR /&gt;
parent=Styles.statistical;&lt;BR /&gt;
style GraphLabelText from GraphLabelText / fontsize = 10px;&lt;BR /&gt;
style GraphValueText from GraphValueText / fontsize = 8px;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ods html style = MyStyleDefault;&lt;BR /&gt;
&lt;BR /&gt;
Many thanks,&lt;BR /&gt;
&lt;BR /&gt;
Kriss</description>
      <pubDate>Wed, 03 Nov 2010 14:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-and-Y-axis/m-p/25476#M736</guid>
      <dc:creator>Risks</dc:creator>
      <dc:date>2010-11-03T14:06:00Z</dc:date>
    </item>
  </channel>
</rss>

