<?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: How to change plot (not entire graph) size in sgplot? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/710023#M26754</link>
    <description>&lt;P&gt;One option (if you really do want to control the actual length of the axes ... not just the offset/origin so 2 graphs line up) is to use SAS/Graph gplot, which lets you directly specify the length of the axes. Here is an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;goptions xpixels=400 ypixels=400 border cback=pink;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;axis1 &lt;STRONG&gt;length=2.2in&lt;/STRONG&gt; origin=(35pct,25pct);&lt;BR /&gt;axis2 &lt;STRONG&gt;length=2.2in&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gplot data=sashelp.class;&lt;BR /&gt;plot height*weight / haxis=axis1 vaxis=axis2;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gplot data=sashelp.class;&lt;BR /&gt;plot name*weight / haxis=axis1 vaxis=axis2;&lt;BR /&gt;run;&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="graph1.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53288i6818C8C8BE10440E/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph1.png" alt="graph1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph2.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53290iB4BB6C4E24ECC58B/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph2.png" alt="graph2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jan 2021 19:55:02 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2021-01-07T19:55:02Z</dc:date>
    <item>
      <title>How to change plot (not entire graph) size in sgplot?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708249#M26570</link>
      <description>&lt;P&gt;How to change plot size in proc sgplot? NOT graph size (which includes the plot itself, title, axis titles, etc.), but only the &lt;U&gt;area bound by axes&lt;/U&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Dec 2020 08:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708249#M26570</guid>
      <dc:creator>Vic3</dc:creator>
      <dc:date>2020-12-26T08:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to change plot (not entire graph) size in sgplot?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708262#M26571</link>
      <description>Try &lt;BR /&gt;xaxis  min=  max=</description>
      <pubDate>Sat, 26 Dec 2020 10:41:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708262#M26571</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-12-26T10:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to change plot (not entire graph) size in sgplot?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708288#M26573</link>
      <description>Unfortunately min= max= only re-scales, but does not change plot dimensions.</description>
      <pubDate>Sat, 26 Dec 2020 18:00:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708288#M26573</guid>
      <dc:creator>Vic3</dc:creator>
      <dc:date>2020-12-26T18:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to change plot (not entire graph) size in sgplot?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708326#M26581</link>
      <description>Can you give us an example to illustrate your question ?</description>
      <pubDate>Sun, 27 Dec 2020 09:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708326#M26581</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-12-27T09:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to change plot (not entire graph) size in sgplot?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708490#M26597</link>
      <description>&lt;P&gt;It's just a set of basic plots:&lt;BR /&gt;********&lt;BR /&gt;ods graphics on / width=500PX height=400PX;&lt;BR /&gt;proc sgplot data=mydata;&lt;BR /&gt;by variable1;&lt;BR /&gt;scatter x=variable2 y=variable3 / colorresponse=variable4;&lt;BR /&gt;run;&lt;BR /&gt;*********&lt;BR /&gt;Options "width" and "height" control the size of the outer edge of the entire graph. (Graph - the entire object, plot - inner rectangle bound by axes). Later on I'll be displaying multiple plots on one page and cropping outer margins. Since the scale labels (number of digits) vary from graph to graph, SAS resizes plots, while keeping graph size the same (500PX by 400PX). I want to control the size of inner plot rather than the entire graph.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 23:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708490#M26597</guid>
      <dc:creator>Vic3</dc:creator>
      <dc:date>2020-12-28T23:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to change plot (not entire graph) size in sgplot?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708596#M26602</link>
      <description>&lt;P&gt;Did you look at SGPANEL instead of SGPLOT?&lt;/P&gt;
&lt;P&gt;Still not sure quite what you need but in SGPANEL you have some options to maintain row/column axis the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you looked at the SGPLOT ASPECT= option to play with ratios of wall areas?&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=sashelp.class;
   scatter x=height y=weight;
run;

proc sgplot data=sashelp.class aspect=1;
   scatter x=height y=weight;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or moving to the Graphics Template Language provides more controls.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 17:07:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708596#M26602</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-29T17:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to change plot (not entire graph) size in sgplot?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708636#M26603</link>
      <description>&lt;P&gt;I'll clarify what I mean on the picture below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test1.jpg" style="width: 647px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53087i94208C798FA12337/image-size/large?v=v2&amp;amp;px=999" role="button" title="test1.jpg" alt="test1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note how width of the graph (L) defined by the code (width= )&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;stays the same&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;, while width of the plot (d) changes automatically to fit the content. I want to control width and height of the plot.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 20:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708636#M26603</guid>
      <dc:creator>Vic3</dc:creator>
      <dc:date>2020-12-29T20:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to change plot (not entire graph) size in sgplot?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708738#M26613</link>
      <description>&lt;P&gt;Maybe it is NOT what you want.&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy&lt;/a&gt;&amp;nbsp; might have solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sgplot data=sashelp.class ;
   scatter x=height y=weight;
   xaxis offsetmax=0.5 valueshint;
   yaxis offsetmax=0.1 valueshint;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Dec 2020 11:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708738#M26613</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-12-30T11:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to change plot (not entire graph) size in sgplot?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708739#M26614</link>
      <description>&lt;P&gt;Also&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4628"&gt;@tc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 11:28:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708739#M26614</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-12-30T11:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to change plot (not entire graph) size in sgplot?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708750#M26617</link>
      <description>&lt;P&gt;I think this issue has been discussed at&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Position-origin-and-length-of-axes-in-the-graph-output-area-in/m-p/705845" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/Position-origin-and-length-of-axes-in-the-graph-output-area-in/m-p/705845&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Options include SGPANEL or GTL.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 12:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/708750#M26617</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-12-30T12:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to change plot (not entire graph) size in sgplot?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/710023#M26754</link>
      <description>&lt;P&gt;One option (if you really do want to control the actual length of the axes ... not just the offset/origin so 2 graphs line up) is to use SAS/Graph gplot, which lets you directly specify the length of the axes. Here is an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;goptions xpixels=400 ypixels=400 border cback=pink;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;axis1 &lt;STRONG&gt;length=2.2in&lt;/STRONG&gt; origin=(35pct,25pct);&lt;BR /&gt;axis2 &lt;STRONG&gt;length=2.2in&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gplot data=sashelp.class;&lt;BR /&gt;plot height*weight / haxis=axis1 vaxis=axis2;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gplot data=sashelp.class;&lt;BR /&gt;plot name*weight / haxis=axis1 vaxis=axis2;&lt;BR /&gt;run;&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="graph1.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53288i6818C8C8BE10440E/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph1.png" alt="graph1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph2.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53290iB4BB6C4E24ECC58B/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph2.png" alt="graph2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 19:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-plot-not-entire-graph-size-in-sgplot/m-p/710023#M26754</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2021-01-07T19:55:02Z</dc:date>
    </item>
  </channel>
</rss>

