<?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 SGPLOT Aspect ratio in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Aspect-ratio/m-p/24035#M672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to see if there was anything new about changing the aspect ratio of the cell within SGPLOT. I know you can set the width and height in the template or by using the ODS GRAPHICS statement. As you know, though, that is for the entire output area. It does not give the same graph aspect ratio when there is a legend and when there's not, for example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to specifically set the width and height of the cell in SGPLOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help or suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chuck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2011 18:40:17 GMT</pubDate>
    <dc:creator>ChuckK</dc:creator>
    <dc:date>2011-06-30T18:40:17Z</dc:date>
    <item>
      <title>SGPLOT Aspect ratio</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Aspect-ratio/m-p/24035#M672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to see if there was anything new about changing the aspect ratio of the cell within SGPLOT. I know you can set the width and height in the template or by using the ODS GRAPHICS statement. As you know, though, that is for the entire output area. It does not give the same graph aspect ratio when there is a legend and when there's not, for example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to specifically set the width and height of the cell in SGPLOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help or suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chuck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 18:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Aspect-ratio/m-p/24035#M672</guid>
      <dc:creator>ChuckK</dc:creator>
      <dc:date>2011-06-30T18:40:17Z</dc:date>
    </item>
    <item>
      <title>SGPLOT Aspect ratio</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Aspect-ratio/m-p/24036#M673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since nobody replied with an &lt;STRONG&gt;sgplot &lt;/STRONG&gt;answer, here's a &lt;STRONG&gt;gplot &lt;/STRONG&gt;alternative...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In gplot, you can specify the exact desired length of the axes (and thereby control the aspect ratio), using axis statements, such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 length=2in;&lt;BR /&gt;axis2 length=4in;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gplot data=sashelp.class;&lt;BR /&gt;plot height*weight / vaxis=axis1 haxis=axis2;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 13:43:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Aspect-ratio/m-p/24036#M673</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-07-01T13:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Aspect ratio</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Aspect-ratio/m-p/24037#M674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not know of how to specify an exact height and width, but there are the OFFSETMIN= and OFFSETMAX= options for the XAXIS and YAXIS statements, they allow you to controll how much space is used for the plotting, find a sample code below that illustrates this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;sgplot&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=sashelp.class;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;vbar&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; age / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;group&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=sex;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;xaxis&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;offsetmax&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;0.3&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;yaxis&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;offsetmax&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;0.3&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;keylegend&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; / location=inside &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;position&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=topright &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;across&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 15:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Aspect-ratio/m-p/24037#M674</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2011-07-01T15:29:00Z</dc:date>
    </item>
  </channel>
</rss>

