<?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: SGPLOT - graph shape square in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-shape-square/m-p/21507#M561</link>
    <description>Currently, the SG procedures do not support equated axes but the Graph Template Language (GTL) does. Here is a very simple example to get you started. Details for the template language can be found in the documentation.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc template;&lt;BR /&gt;
define statgraph square;&lt;BR /&gt;
begingraph;&lt;BR /&gt;
   layout overlayequated / equatetype=square;&lt;BR /&gt;
      scatterplot x=weight y=height;&lt;BR /&gt;
      ellipse x=weight y=height / alpha=0.05 type=predicted;&lt;BR /&gt;
   endlayout;&lt;BR /&gt;
endgraph;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sgrender data=sashelp.class template=square; run; &lt;BR /&gt;
[/pre]</description>
    <pubDate>Thu, 13 May 2010 19:41:43 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2010-05-13T19:41:43Z</dc:date>
    <item>
      <title>SGPLOT - graph shape square</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-shape-square/m-p/21505#M559</link>
      <description>How do I get SAS to print an ellipse plot as square, size n by n?  Regardless of axis range for either x or y, each axis should have the same length (ie. 5") on the figure generated / printed.  SAS ellipse plots printed in landscape are NOT the same (different angle of rotation, major and minor axis are not perpendicular, etc) as ellipse plots in a square.  SAS ellipse plots in landscape are not correct - only distortions of an ellipse plot in a square.  &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc sgplot data=WORK;&lt;BR /&gt;
   scatter x=afp y=ue3;&lt;BR /&gt;
   ellipse x=afp y=ue3 /alpha=0.05;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Lou</description>
      <pubDate>Thu, 13 May 2010 17:51:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-shape-square/m-p/21505#M559</guid>
      <dc:creator>Lou523</dc:creator>
      <dc:date>2010-05-13T17:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT - graph shape square</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-shape-square/m-p/21506#M560</link>
      <description>Hopefully one of the sgplot experts can give you an answer.&lt;BR /&gt;
&lt;BR /&gt;
But, if you can't find a way to do it in sgplot, you might give gplot a try - you can specify a length (in inches) in the axis statements, and it will generally try to honor that (thereby giving you a way to keep the axes &amp;amp; your plot proportional).&lt;BR /&gt;
&lt;BR /&gt;
As an example, below is the code for a "spiral" time-series plot - I wanted to keep the 2 axes proportional (whether title statements got added, etc) so that the spiral would not look "squished".&lt;BR /&gt;
&lt;BR /&gt;
-----&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd46/spiral_info.htm" target="_blank"&gt;http://robslink.com/SAS/democd46/spiral_info.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;IMG src="http://robslink.com/SAS/democd46/spiral.png" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Robert Allison @ SAS

Message was edited by: Robert Allison @ SAS</description>
      <pubDate>Thu, 13 May 2010 18:47:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-shape-square/m-p/21506#M560</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-05-13T18:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT - graph shape square</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-shape-square/m-p/21507#M561</link>
      <description>Currently, the SG procedures do not support equated axes but the Graph Template Language (GTL) does. Here is a very simple example to get you started. Details for the template language can be found in the documentation.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc template;&lt;BR /&gt;
define statgraph square;&lt;BR /&gt;
begingraph;&lt;BR /&gt;
   layout overlayequated / equatetype=square;&lt;BR /&gt;
      scatterplot x=weight y=height;&lt;BR /&gt;
      ellipse x=weight y=height / alpha=0.05 type=predicted;&lt;BR /&gt;
   endlayout;&lt;BR /&gt;
endgraph;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sgrender data=sashelp.class template=square; run; &lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 13 May 2010 19:41:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-shape-square/m-p/21507#M561</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2010-05-13T19:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT - graph shape square</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-shape-square/m-p/21508#M562</link>
      <description>Thanks - I'll give this a try.  Lou</description>
      <pubDate>Tue, 18 May 2010 17:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-shape-square/m-p/21508#M562</guid>
      <dc:creator>Lou523</dc:creator>
      <dc:date>2010-05-18T17:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT - graph shape square</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-shape-square/m-p/21509#M563</link>
      <description>Thanks - I'll give this a try.  Lou</description>
      <pubDate>Tue, 18 May 2010 17:52:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-shape-square/m-p/21509#M563</guid>
      <dc:creator>Lou523</dc:creator>
      <dc:date>2010-05-18T17:52:44Z</dc:date>
    </item>
  </channel>
</rss>

