<?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: SGPANEL plot is too narrow in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981912#M25786</link>
    <description>&lt;P&gt;Try specifying both the width and the height on the ODS GRAPHICS statement. By default, the aspect of the graph is maintained when you specify only width or height. Hope this helps!&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jan 2026 21:28:34 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2026-01-13T21:28:34Z</dc:date>
    <item>
      <title>SGPANEL plot is too narrow</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981911#M25785</link>
      <description>&lt;P&gt;I'm using SGPANEL with ODS PDF with orientation=landscape and trying to make a plot that is 10 inches wide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try below code, SGPANEL leaves a lot of space on the right, almost as if it's leaving room for an extra column.&amp;nbsp; How can I make the SGPANEL plot fill the page?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation=landscape nocenter;
ods graphics/reset=all border=off width=10in;

ods listing close;
ods pdf file="%sysfunc(pathname(work))\Foo.pdf" style=pearl notoc ;    

title1 "Width of sgplot plot is good" ;
proc sgplot data=sashelp.class ;
  scatter x=height y=weight ;
run ;
title1 ;

title1 "Width of sgpanel plot is too narrow" ;
proc sgpanel data=sashelp.class ;
  panelby sex/ layout=rowlattice onepanel ;
  scatter x=height y=weight ;
run ;
title1 ;

ods _all_ close ;
ods listing ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My pdf looks like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Quentin_0-1768339058565.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112601i96D3CD9FA92BC9C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Quentin_0-1768339058565.png" alt="Quentin_0-1768339058565.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I tried making the graph narrower (8in or 9in) in case I was hitting the margins, but no luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SGPLOT works fine.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 21:21:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981911#M25785</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2026-01-13T21:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL plot is too narrow</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981912#M25786</link>
      <description>&lt;P&gt;Try specifying both the width and the height on the ODS GRAPHICS statement. By default, the aspect of the graph is maintained when you specify only width or height. Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 21:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981912#M25786</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2026-01-13T21:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL plot is too narrow</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981913#M25787</link>
      <description>&lt;P&gt;Thanks for the thought Dan.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try e.g.&amp;nbsp;width=10in height=7in&amp;nbsp; the plot is empty and the log tells me:&lt;/P&gt;
&lt;PRE&gt;Cell height -34 is smaller than the minimum cell height 1. All contents are removed from the layout.
Cell height -34 is smaller than the minimum cell height 1. All contents are removed from the layout.
&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Jan 2026 21:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981913#M25787</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2026-01-13T21:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL plot is too narrow</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981928#M25788</link>
      <description>&lt;P&gt;Try using these options on the panelby statement (behind the forward slash):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LAYOUT=panel columns=4 novarname&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 22:38:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981928#M25788</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-01-13T22:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL plot is too narrow</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981951#M25789</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Try using these options on the panelby statement (behind the forward slash):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LAYOUT=panel columns=4 novarname&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That gives a single row with 4 columns, and uses the whole page correctly:&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="Quentin_2-1768398029139.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112619i95601E9BF505C621/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Quentin_2-1768398029139.png" alt="Quentin_2-1768398029139.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I want a single column, with two rows. If I use Layout=panel columns=1, I'm back to having an image half the width of the page:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Quentin_3-1768398051061.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112620i2D6743BA76A37FCE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Quentin_3-1768398051061.png" alt="Quentin_3-1768398051061.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 13:42:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981951#M25789</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2026-01-14T13:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL plot is too narrow</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981958#M25790</link>
      <description>&lt;P&gt;I tried your test program using 10in by 7in and it worked as expected for me. Are there any other options active in your session?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 15:30:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981958#M25790</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2026-01-14T15:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL plot is too narrow</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981960#M25791</link>
      <description>&lt;P&gt;This is what I get with your test program at 10in by 7in:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanH_sas_0-1768404831196.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112622i7DD8CA9D06418BFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanH_sas_0-1768404831196.png" alt="DanH_sas_0-1768404831196.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 15:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981960#M25791</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2026-01-14T15:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: SGPANEL plot is too narrow</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981961#M25792</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&amp;nbsp;.&amp;nbsp; I tried again with width=10in height=7in today and it worked.&amp;nbsp; I'm pretty sure I was testing in a fresh session yesterday, so not sure how I managed to muck it up.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 15:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPANEL-plot-is-too-narrow/m-p/981961#M25792</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2026-01-14T15:49:10Z</dc:date>
    </item>
  </channel>
</rss>

