<?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 SGPanel &amp; ODS Layout - stretch chart across page in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79636#M2965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I'm using ODS Layout and SGPanel and want the chart to fill the page. Is there a way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian Adams&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2013 18:07:13 GMT</pubDate>
    <dc:creator>BTAinRVA</dc:creator>
    <dc:date>2013-01-18T18:07:13Z</dc:date>
    <item>
      <title>SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79636#M2965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I'm using ODS Layout and SGPanel and want the chart to fill the page. Is there a way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian Adams&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 18:07:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79636#M2965</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2013-01-18T18:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79637#M2966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the ODS Layou code below but the panel chart doesn't fill the page. I would like the chart to be larger. Is there a way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sascode.png" class="jive-image-thumbnail jive-image" height="278" src="https://communities.sas.com/legacyfs/online/2986_sascode.png" width="736" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 15:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79637#M2966</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2013-01-21T15:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79638#M2967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you add&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ODS PDF "\\your_path\plot_full_page.pdf";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;your proc sgpnale code&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ODS PDF CLOSE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It fills the page.&lt;/P&gt;&lt;P&gt;Maybe I don't fully understand what would you like to accomplish at the end?:smileyconfused:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 15:58:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79638#M2967</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-01-21T15:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79639#M2968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. Yes I do have that ODS PDF code sandwiched around my code. But the panel chart only fills about 70% of the available page area. I would like the chart to fill the entire page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 18:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79639#M2968</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2013-01-21T18:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79640#M2969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you, please, try to change your width and height statement to:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;width = 100pct height = 100pct;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I get -- see attached, using this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods layout start w&lt;STRONG&gt;idth = 100pct height = 100pct;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ods escapechar = "^";&lt;/P&gt;&lt;P&gt;ods region &lt;STRONG&gt;width = 100pct height = 100pct&lt;/STRONG&gt; ;*x = .1in y = .5in;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods pdf file =&lt;STRONG&gt; "my_path....\plot.pdf";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgpanel data = sashelp.class;&lt;/P&gt;&lt;P&gt;panelby sex/columns = 1 onepanel uniscale = all;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*format; *I don't have a format, but this shouldn't affect anything;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;band x = height lower = 0 upper = 75/transparency= .5 legendlabel = "Height" fillattrs = (color = OLIVE);&lt;/P&gt;&lt;P&gt;series x = weight y = age/legendlabel = "Something" lineattrs = (color = MAROON thickness = 3);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 18:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79640#M2969</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-01-21T18:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79641#M2970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the reply. When I run your code I again get a panel chart that only fills about 70% of the page. The output you posted looks like it used Proc SGPlot. When I run the code below I get a plot that only fills about half the page. (P.S. is there any way to copy/paste my code into these posts?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sgplot.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2999_sgplot.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 21:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79641#M2970</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2013-01-21T21:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79642#M2971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.. This seems to works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods pdf file='c:\Plot.pdf';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods graphics / reset width=100pct height=100pct;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=sashelp.cars;&lt;/P&gt;&lt;P&gt;&amp;nbsp; histogram mpg_city;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods pdf file='c:\Panel.pdf';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods graphics / reset width=100pct height=100pct;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc sgpanel data=sashelp.cars;&lt;/P&gt;&lt;P&gt;&amp;nbsp; panelby origin / layout=rowlattice onepanel;&lt;/P&gt;&lt;P&gt;&amp;nbsp; histogram mpg_city;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 22:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79642#M2971</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-01-21T22:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79643#M2972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately it is not doing for me what it is doing for you. I think there must be some system settings that need to be changed on my end. I'm still getting a chart that only fills about 70% of the page (see attached file).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 14:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79643#M2972</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2013-01-23T14:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79644#M2973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very interesting.&lt;/P&gt;&lt;P&gt;Did you try 1. GOPTIONS reset = all;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Close SAS and open it again.&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 14:14:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79644#M2973</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-01-23T14:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79645#M2974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am checking with others here who know more about ODS Layout.&amp;nbsp; However, do you need the ODS LAYOUT and the ODS REGION statements?&amp;nbsp; These are pre-production, and may not be doing what you want.&amp;nbsp; The example I sent you does not have those statements.&amp;nbsp; Yes, try this in a fresh session of SAS as suggested by Anca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 14:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79645#M2974</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-01-23T14:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79646#M2975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply! I had great hopes that that would be the answer. But I did exactly what you suggested and I still get a chart that fills only about 70% of the page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 14:31:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79646#M2975</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2013-01-23T14:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79647#M2976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied the code you sent to a&amp;nbsp; new editor window and ran it without any of the ODS layout code and I still got the same results as before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 14:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79647#M2976</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2013-01-23T14:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79648#M2977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anca &amp;amp; Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to try running Sanjay's code on another pc to see if it's just something related to my installation. I'll let you know how it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 14:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79648#M2977</guid>
      <dc:creator>BTAinRVA</dc:creator>
      <dc:date>2013-01-23T14:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79649#M2978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need to define rows and columns when using ODS LAYOUT in PDF.&lt;/P&gt;&lt;P&gt;Can you attach your full code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;ods pdf file='c:\Panel.pdf';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods layout start rows=1 columns=1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ods region;&lt;/P&gt;&lt;P&gt;ods graphics / reset width=100pct height=100pct;&lt;/P&gt;&lt;P&gt;proc sgpanel data=sashelp.cars;&lt;/P&gt;&lt;P&gt;&amp;nbsp; panelby origin / layout=rowlattice onepanel;&lt;/P&gt;&lt;P&gt;&amp;nbsp; histogram mpg_city;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 15:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79649#M2978</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-01-23T15:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: SGPanel &amp; ODS Layout - stretch chart across page</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79650#M2979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may be using some release of SAS 9.2.&amp;nbsp; In that case, the width=100% will not work on the ODS GRAPHICS statement will not work as it was not yet implemented for SAS 9.2.&amp;nbsp; Note ODS LAYOUT is pre-production and&amp;nbsp; it is implemented with SAS 9.3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you will have to provide a specific size for the graph.&amp;nbsp; If this is a 8.5" x 11" page, I suggest using:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods graphics / reset width=7.5in height=10in;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 21:11:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPanel-ODS-Layout-stretch-chart-across-page/m-p/79650#M2979</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-01-23T21:11:41Z</dc:date>
    </item>
  </channel>
</rss>

