<?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 Y-Axis positioning in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41273#M10672</link>
    <description>Currently, I have some graphs that manually label the Y-Axis using annotate to position the label left justified, starting directly above the Y-Axis line and  continuing above the frame of the graph.  I have tried to convert this using LABEL= on an AXIS statement, but SAS is always placing the label to the far left, above the Y-Axis values.</description>
    <pubDate>Fri, 22 Aug 2008 13:43:25 GMT</pubDate>
    <dc:creator>DavidJ</dc:creator>
    <dc:date>2008-08-22T13:43:25Z</dc:date>
    <item>
      <title>Y-Axis positioning</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41273#M10672</link>
      <description>Currently, I have some graphs that manually label the Y-Axis using annotate to position the label left justified, starting directly above the Y-Axis line and  continuing above the frame of the graph.  I have tried to convert this using LABEL= on an AXIS statement, but SAS is always placing the label to the far left, above the Y-Axis values.</description>
      <pubDate>Fri, 22 Aug 2008 13:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41273#M10672</guid>
      <dc:creator>DavidJ</dc:creator>
      <dc:date>2008-08-22T13:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Y-Axis positioning</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41274#M10673</link>
      <description>Please include some code in your posting.  We need to see what you are doing.</description>
      <pubDate>Fri, 22 Aug 2008 16:52:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41274#M10673</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2008-08-22T16:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Y-Axis positioning</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41275#M10674</link>
      <description>The current code has the following in a data step:&lt;BR /&gt;
**** y label;&lt;BR /&gt;
        xsys='1';&lt;BR /&gt;
        ysys='1'; &lt;BR /&gt;
        hsys='3';&lt;BR /&gt;
        x=0;&lt;BR /&gt;
        y=100; &lt;BR /&gt;
        text=Y-Axis label';&lt;BR /&gt;
        style="&amp;amp;hwfont1"; &lt;BR /&gt;
        size=&amp;amp;stdsize*&amp;amp;sizeadj;    * Different sizes for different outputs;&lt;BR /&gt;
        color="&amp;amp;black.";&lt;BR /&gt;
        position='3';&lt;BR /&gt;
        output;</description>
      <pubDate>Fri, 22 Aug 2008 18:54:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41275#M10674</guid>
      <dc:creator>DavidJ</dc:creator>
      <dc:date>2008-08-22T18:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Y-Axis positioning</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41276#M10675</link>
      <description>More code needed!  What are you doing in the gplot routine that might be interfering with the annotate step?</description>
      <pubDate>Fri, 22 Aug 2008 19:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41276#M10675</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2008-08-22T19:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Y-Axis positioning</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41277#M10676</link>
      <description>More code supplied (with certain names made generic)&lt;BR /&gt;
proc gplot data=name anno=anno gout=ris.&amp;amp;gseg;&lt;BR /&gt;
   plot mutual*n&lt;BR /&gt;
        stock*n /&lt;BR /&gt;
        vaxis=axis1&lt;BR /&gt;
        haxis=axis2&lt;BR /&gt;
        frame&lt;BR /&gt;
        legend=legend1&lt;BR /&gt;
        vref=0&lt;BR /&gt;
        lvref=34&lt;BR /&gt;
        name='name'&lt;BR /&gt;
        overlay&lt;BR /&gt;
        des=DESC';&lt;BR /&gt;
&lt;BR /&gt;
   format mutual stock comma4.;&lt;BR /&gt;
&lt;BR /&gt;
   * I have tried using label= with values w/ no luck;&lt;BR /&gt;
   axis1 origin=(&amp;amp;xorg.,&amp;amp;yorg.)&lt;BR /&gt;
         value=(h=&amp;amp;htextsize. f=&amp;amp;hwfont1. c=&amp;amp;black.)&lt;BR /&gt;
         label=none&lt;BR /&gt;
         order=(&amp;amp;low. to &amp;amp;high. by &amp;amp;increm.)&lt;BR /&gt;
         major=(h=-0.9 c=&amp;amp;black.)&lt;BR /&gt;
         minor=none length=&amp;amp;ylength.;&lt;BR /&gt;
&lt;BR /&gt;
   axis2 label=none&lt;BR /&gt;
         value=none&lt;BR /&gt;
         major=none&lt;BR /&gt;
         minor=none&lt;BR /&gt;
         length=&amp;amp;xlength.&lt;BR /&gt;
         order=(1 to &amp;amp;lastn. by 1)&lt;BR /&gt;
         offset=(2.5,2.5)pct;&lt;BR /&gt;
&lt;BR /&gt;
   symbol1 c=&amp;amp;rblack. i=join v=none l=&amp;amp;line1. w=&amp;amp;linewide.;&lt;BR /&gt;
   symbol2 c=&amp;amp;bblack. i=join v=none l=&amp;amp;line2. w=&amp;amp;linewide.;&lt;BR /&gt;
   legend1 across=1 down=2&lt;BR /&gt;
           offset=(-1,-1)&lt;BR /&gt;
           mode=share&lt;BR /&gt;
           label=none&lt;BR /&gt;
           position=(top right inside)&lt;BR /&gt;
           value=(font=&amp;amp;hwfont1. justify=l h=&amp;amp;ltextsize.&lt;BR /&gt;
                  tick=1 'item 1'&lt;BR /&gt;
                  tick=2 'item 2') ;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;</description>
      <pubDate>Fri, 22 Aug 2008 19:36:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41277#M10676</guid>
      <dc:creator>DavidJ</dc:creator>
      <dc:date>2008-08-22T19:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Y-Axis positioning</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41278#M10677</link>
      <description>Bill - I am trying to get away from a lot of old SAS/Graph code that relies too much on annotation for a lot of things (including tick marks, axis values and so on).  Some of the code goes way back (15 years+).  Most I can convert with no problems, the y-axis label positioning has me stumped.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Fri, 22 Aug 2008 19:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41278#M10677</guid>
      <dc:creator>DavidJ</dc:creator>
      <dc:date>2008-08-22T19:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Y-Axis positioning</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41279#M10678</link>
      <description>David;&lt;BR /&gt;
&lt;BR /&gt;
I don't see how to move the label to where you I think you want it.  But I  fooled the title into the correct location.  Try it without the move(1,93)pct.  I think it's right where you want it.&lt;BR /&gt;
&lt;BR /&gt;
data test;                                                                                                                              &lt;BR /&gt;
input x y;                                                                                                                              &lt;BR /&gt;
datalines;                                                                                                                              &lt;BR /&gt;
1 4                                                                                                                                     &lt;BR /&gt;
2 3                                                                                                                                     &lt;BR /&gt;
3 6                                                                                                                                     &lt;BR /&gt;
4 9                                                                                                                                     &lt;BR /&gt;
5 7                                                                                                                                     &lt;BR /&gt;
6 1                                                                                                                                     &lt;BR /&gt;
7 7                                                                                                                                     &lt;BR /&gt;
8 5                                                                                                                                     &lt;BR /&gt;
9 2                                                                                                                                     &lt;BR /&gt;
;                                                                                                                                       &lt;BR /&gt;
run;                                                                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
goptions reset=all                                                                                                                      &lt;BR /&gt;
         dev=win;                                                                                                                       &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
title1 '"Right" justifying the Y axis label';                                                                                           &lt;BR /&gt;
title3 j=l move=(1,93) pct 'Long Axis Label'; *move is optional;&lt;BR /&gt;
                                                                                           &lt;BR /&gt;
axis1 label=none;                                                                                                                       &lt;BR /&gt;
axis2 label=none;                                                                                                                       &lt;BR /&gt;
symbol1 i=join l=1 c='cxd7301f';                                                                                                        &lt;BR /&gt;
proc gplot data=test;                                                                                                                   &lt;BR /&gt;
plot y*x/vaxis=axis1                                                                                                                    &lt;BR /&gt;
         haxis=axis2                                                                                                                    &lt;BR /&gt;
;                                                                                                                                       &lt;BR /&gt;
run;                                                                                                                                    &lt;BR /&gt;
quit;</description>
      <pubDate>Fri, 22 Aug 2008 20:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41279#M10678</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2008-08-22T20:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Y-Axis positioning</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41280#M10679</link>
      <description>I like that trick.  Maybe I will ask for an additional option as an enhancement on the label portion of the axis statement, something like location=inside to do what I want. &lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Mon, 25 Aug 2008 12:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Y-Axis-positioning/m-p/41280#M10679</guid>
      <dc:creator>DavidJ</dc:creator>
      <dc:date>2008-08-25T12:47:04Z</dc:date>
    </item>
  </channel>
</rss>

