<?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 Y2Axis label direction (not values label) in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Y2Axis-label-direction-not-values-label/m-p/637105#M19708</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I use y2axis in sgplot, the label for the entire y2axis is rotated counterclockwise, just like the yaxis.&amp;nbsp; I would like this label to instead be rotated clockwise.&amp;nbsp; Is this possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kastchei_0-1585868328561.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37723iCF2DE7F5810173E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kastchei_0-1585868328561.png" alt="Kastchei_0-1585868328561.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Warm regards,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2020 22:59:56 GMT</pubDate>
    <dc:creator>Kastchei</dc:creator>
    <dc:date>2020-04-02T22:59:56Z</dc:date>
    <item>
      <title>Y2Axis label direction (not values label)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y2Axis-label-direction-not-values-label/m-p/637105#M19708</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I use y2axis in sgplot, the label for the entire y2axis is rotated counterclockwise, just like the yaxis.&amp;nbsp; I would like this label to instead be rotated clockwise.&amp;nbsp; Is this possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kastchei_0-1585868328561.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37723iCF2DE7F5810173E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kastchei_0-1585868328561.png" alt="Kastchei_0-1585868328561.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Warm regards,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 22:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y2Axis-label-direction-not-values-label/m-p/637105#M19708</guid>
      <dc:creator>Kastchei</dc:creator>
      <dc:date>2020-04-02T22:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Y2Axis label direction (not values label)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y2Axis-label-direction-not-values-label/m-p/637187#M19715</link>
      <description>&lt;P&gt;There are no options in SGPLOT or attributes in Graphics Template Language (GTL) that surface a feature for rotating the axis label.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can customize the plot by specify a blank label and using annotation data to draw your own text at the point where a label should be with the rotation angle desired.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;ods html file='plot.html';
&lt;BR /&gt;* annotation data for drawing text for the label at x=110% of the data range and implicit y=50%;&lt;BR /&gt;* with the desired text render direction of rotation 270 (aka -90);&lt;BR /&gt;* 110% puts the text anchor point just beyond the axes tick mark labels;&lt;BR /&gt;&lt;BR /&gt;data y2axis_anno;
  function = "text"; label = "Height"; rotate = 270; x1 = 110; drawspace = 'datapercent';&lt;BR /&gt;  OUTPUT;
run;

proc sgplot data=sashelp.class sganno=y2axis_anno;

  series x=name y=age;
  series x=name y=height / y2axis;

  yaxis max=20;
  y2axis min=30 label=" ";    %* Blank label;
run;&lt;/PRE&gt;
&lt;P&gt;Output&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anno.png" style="width: 658px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37734i73F823DAF84374D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="anno.png" alt="anno.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 09:54:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y2Axis-label-direction-not-values-label/m-p/637187#M19715</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-04-03T09:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Y2Axis label direction (not values label)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Y2Axis-label-direction-not-values-label/m-p/637374#M19719</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 22:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Y2Axis-label-direction-not-values-label/m-p/637374#M19719</guid>
      <dc:creator>Kastchei</dc:creator>
      <dc:date>2020-04-03T22:13:34Z</dc:date>
    </item>
  </channel>
</rss>

