<?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: varying y-axis length in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/varying-y-axis-length/m-p/422396#M14541</link>
    <description>&lt;P&gt;thank you Sanjay, this works very well for me&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2017 17:40:40 GMT</pubDate>
    <dc:creator>wcw</dc:creator>
    <dc:date>2017-12-19T17:40:40Z</dc:date>
    <item>
      <title>varying y-axis length</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/varying-y-axis-length/m-p/422269#M14534</link>
      <description>&lt;P&gt;I'm using GTL and SAS v 9.4. Is there a way to vary the lengths of the y-axis in my template (top &amp;amp; bottom graphs using layout lattice/rows=2) so that the lengths of the y-axis (percentage) will be of varying lengths, with the maximum being a certain value, say, 10% above the maximum percentage value in the data?&amp;nbsp;I.e., a "floating" y-axis length for each graph. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 13:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/varying-y-axis-length/m-p/422269#M14534</guid>
      <dc:creator>wcw</dc:creator>
      <dc:date>2017-12-19T13:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: varying y-axis length</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/varying-y-axis-length/m-p/422333#M14538</link>
      <description>&lt;P&gt;I won't say "no" but since GTL has to live with other things like ODS GRAPHICS that can set the entire available graphics space then trying to set a fixed length inside GTL is likely to have bad interactions when someone changes display area size.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could make the axis statement flexible by using a parameter that sets the max value of the axis if you calculate it before the SGRENDER that calls the template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generic answer to generic question. If you show your code for the template you may get better suggestions. Best would include some example data in the form of a data step to allow testing code. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 15:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/varying-y-axis-length/m-p/422333#M14538</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-19T15:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: varying y-axis length</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/varying-y-axis-length/m-p/422351#M14539</link>
      <description>&lt;P&gt;If you have a LATTICE layout, you can set the ROWWEIGHTS (or COLUMNWEIGHTS) option to make the ROWS (or COLUMNS) of the height you want based on the proportion between the two Y axes.&amp;nbsp;&amp;nbsp;If you want this to be dynamically controlled, you could use ROWWEIGHTS=dynamic, where the dynamic is the the text string providing the values, such as "0.6 0.4" not including the quotes or the parentheses.&amp;nbsp; Then, you can generate this dynamic string based on the use case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The actual axis length is always computed based on the size of the cell.&amp;nbsp; There is no way to specify an axis length in GTL.&amp;nbsp; If you want, you can keep the cells constant size and set a PAD value to provide more white space above the y-axis.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 16:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/varying-y-axis-length/m-p/422351#M14539</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-12-19T16:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: varying y-axis length</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/varying-y-axis-length/m-p/422395#M14540</link>
      <description>&lt;P&gt;thank you ballardw&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 17:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/varying-y-axis-length/m-p/422395#M14540</guid>
      <dc:creator>wcw</dc:creator>
      <dc:date>2017-12-19T17:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: varying y-axis length</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/varying-y-axis-length/m-p/422396#M14541</link>
      <description>&lt;P&gt;thank you Sanjay, this works very well for me&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 17:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/varying-y-axis-length/m-p/422396#M14541</guid>
      <dc:creator>wcw</dc:creator>
      <dc:date>2017-12-19T17:40:40Z</dc:date>
    </item>
  </channel>
</rss>

