<?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 Multiple graphs on one page in Enterprise Guide? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/228422#M8281</link>
    <description>&lt;P&gt;I'm generating four graphs using enterprise guide. I'd like to place them on a page 2 across, two down.&lt;BR /&gt;&lt;BR /&gt;In regular SAS, you would do something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&lt;FONT color="#0000FF"&gt;ods pdf file='file.pdf' startpage=no;
ods layout start width=8in height=10.5in; /*identify width and height of entire page leaving room for margins*/
&lt;/FONT&gt;ods region x=0in width=2.25in y=0in height=5in; /*identify region boundaries*/
{code with output}
ods region x=2.5in width=2.25in y=0in height=5in; /*identify region boundaries*/
{code with output}
ods region x=5in width=2.25in y=0in height=5in; /*identify region boundaries*/
{code with output}
ods region x=0in width=8in y=5.25in height=5in; /*identify region boundaries*/
{code with output}
&lt;STRONG&gt;&lt;FONT color="#800000"&gt;ods layout end;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;However, how do I get the code in &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;blue&lt;/STRONG&gt;&lt;/FONT&gt; to run at the beginning of the process flow,&lt;BR /&gt;the code in &lt;STRONG&gt;&lt;FONT color="#800000"&gt;red&lt;/FONT&gt; &lt;/STRONG&gt;to run at the end so that all the graphs will be in the same PDF?&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2015 18:58:51 GMT</pubDate>
    <dc:creator>SciFiGuy0</dc:creator>
    <dc:date>2015-10-05T18:58:51Z</dc:date>
    <item>
      <title>Multiple graphs on one page in Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/228422#M8281</link>
      <description>&lt;P&gt;I'm generating four graphs using enterprise guide. I'd like to place them on a page 2 across, two down.&lt;BR /&gt;&lt;BR /&gt;In regular SAS, you would do something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&lt;FONT color="#0000FF"&gt;ods pdf file='file.pdf' startpage=no;
ods layout start width=8in height=10.5in; /*identify width and height of entire page leaving room for margins*/
&lt;/FONT&gt;ods region x=0in width=2.25in y=0in height=5in; /*identify region boundaries*/
{code with output}
ods region x=2.5in width=2.25in y=0in height=5in; /*identify region boundaries*/
{code with output}
ods region x=5in width=2.25in y=0in height=5in; /*identify region boundaries*/
{code with output}
ods region x=0in width=8in y=5.25in height=5in; /*identify region boundaries*/
{code with output}
&lt;STRONG&gt;&lt;FONT color="#800000"&gt;ods layout end;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;However, how do I get the code in &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;blue&lt;/STRONG&gt;&lt;/FONT&gt; to run at the beginning of the process flow,&lt;BR /&gt;the code in &lt;STRONG&gt;&lt;FONT color="#800000"&gt;red&lt;/FONT&gt; &lt;/STRONG&gt;to run at the end so that all the graphs will be in the same PDF?&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 18:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/228422#M8281</guid>
      <dc:creator>SciFiGuy0</dc:creator>
      <dc:date>2015-10-05T18:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graphs on one page in Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/228644#M8287</link>
      <description>&lt;P&gt;I think this will help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Multiple Graphs on One page, the easy way (PDF)" href="http://www2.sas.com/proceedings/sugi28/094-28.pdf" target="_self"&gt;Multiple Graphs on One page, the easy way (PDF) and the hard way (RTF)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Att&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 14:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/228644#M8287</guid>
      <dc:creator>DartRodrigo</dc:creator>
      <dc:date>2015-10-06T14:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graphs on one page in Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/228885#M8292</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; That's a great way to do it using SAS directly.&amp;nbsp;&amp;nbsp; However, I think it's a little more difficult in EG.&amp;nbsp; I'm not sure how to control the ODS statements so they set-up only in the beginning and don't close out between graphs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems like whatever I do, EG generates an ODS Close All statement after procs.&amp;nbsp;&amp;nbsp; That stops me from putting multiple graphs on one page&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 15:01:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/228885#M8292</guid>
      <dc:creator>SciFiGuy0</dc:creator>
      <dc:date>2015-10-07T15:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graphs on one page in Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/229487#M8302</link>
      <description>you can start your program with&lt;BR /&gt;ODS _ALL_ CLOSE; &lt;BR /&gt;to close the default EG destination that's open. Your posted code shows the end for ODS LAYOUT, but not ODS PDF CLOSE; (which I assume was a typo) If you close all the automatic EG destinations and enclose your code in the correct ODS "sandwich", then even EG should put the output from all 4 procedures into 1 pdf file.&lt;BR /&gt; &lt;BR /&gt;For example, without any attempt to replicate what you are doing with ODS LAYOUT, the output from all 4 procedures goes into 1 PDF file when I run this code.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;BR /&gt;&lt;BR /&gt;ods _all_ close;&lt;BR /&gt;ods pdf file='c:\temp\four_grafs.pdf';&lt;BR /&gt;title;&lt;BR /&gt;proc sgplot data=sashelp.class;&lt;BR /&gt;  vbar sex / response = height group=sex stat=mean;&lt;BR /&gt;run;&lt;BR /&gt;   &lt;BR /&gt;proc sgplot data=sashelp.class;&lt;BR /&gt;  vbar sex / response = weight group=sex stat=mean;&lt;BR /&gt;run;&lt;BR /&gt;  &lt;BR /&gt;proc sgplot data=sashelp.class;&lt;BR /&gt;  vbar sex / response = height group=age groupdisplay=cluster stat=mean;&lt;BR /&gt;run;&lt;BR /&gt;   &lt;BR /&gt;proc sgplot data=sashelp.class;&lt;BR /&gt;  vbar sex / response = weight group=age groupdisplay=cluster stat=mean;&lt;BR /&gt;run;&lt;BR /&gt;   &lt;BR /&gt;ods pdf close;</description>
      <pubDate>Sun, 11 Oct 2015 23:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/229487#M8302</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-10-11T23:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graphs on one page in Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/229689#M8308</link>
      <description>&lt;P&gt;Thanks for your reply! This brings me closer to the goal of putting all the graphs on one page.&amp;nbsp; I was hoping to use it in EG as opposed to regular SAS.&amp;nbsp;&amp;nbsp; The code you provided would work perfectly in SAS&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt; wrote:&lt;BR /&gt;you can start your program with&lt;BR /&gt;ODS _ALL_ CLOSE; &lt;BR /&gt;to close the default EG destination that's open. Your posted code shows the end for ODS LAYOUT, but not ODS PDF CLOSE; (which I assume was a typo) If you close all the automatic EG destinations and enclose your code in the correct ODS "sandwich", then even EG should put the output from all 4 procedures into 1 pdf file.&lt;BR /&gt; &lt;BR /&gt;For example, without any attempt to replicate what you are doing with ODS LAYOUT, the output from all 4 procedures goes into 1 PDF file when I run this code.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 13 Oct 2015 16:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/229689#M8308</guid>
      <dc:creator>SciFiGuy0</dc:creator>
      <dc:date>2015-10-13T16:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graphs on one page in Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/229704#M8310</link>
      <description>&lt;P&gt;You can use ODS LAYOUT GRIDDED with 2 columns and render smaller graphs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods _all_ close;&lt;BR /&gt;ods pdf file='C:\four_grafs.pdf';&lt;BR /&gt;title;&lt;/P&gt;
&lt;P&gt;ods layout gridded columns=2;&lt;BR /&gt;ods region;&lt;BR /&gt;ods graphics / reset width=3in height=2in;&lt;BR /&gt;proc sgplot data=sashelp.class;&lt;BR /&gt;vbar sex / response = height group=sex stat=mean;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods region;&lt;BR /&gt;proc sgplot data=sashelp.class;&lt;BR /&gt;vbar sex / response = weight group=sex stat=mean;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods region;&lt;BR /&gt;proc sgplot data=sashelp.class;&lt;BR /&gt;vbar sex / response = height group=age groupdisplay=cluster stat=mean;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods region;&lt;BR /&gt;proc sgplot data=sashelp.class;&lt;BR /&gt;vbar sex / response = weight group=age groupdisplay=cluster stat=mean;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods layout end;&lt;/P&gt;
&lt;P&gt;ods pdf close;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 13:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/229704#M8310</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-10-13T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graphs on one page in Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/229718#M8311</link>
      <description>&lt;P&gt;Unfortunately, EG seems to put an ODS close on each proc, nomatter what options you set.&amp;nbsp; That basically blocks the multiple graphs thing.&amp;nbsp; I think this is a bug as you're supposed to be able to turn off the "sandwich" using the options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your option above would work great in SAS directly.&amp;nbsp;&amp;nbsp; I suspect I'm going to have to just code it&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 16:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/229718#M8311</guid>
      <dc:creator>SciFiGuy0</dc:creator>
      <dc:date>2015-10-13T16:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple graphs on one page in Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/229754#M8315</link>
      <description>&lt;P&gt;If one procedure is the restriction, this GTL graph should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*--Four Graph Template--*/&lt;BR /&gt;proc template;&lt;BR /&gt; define statgraph four_graphs;&lt;BR /&gt; begingraph;&lt;BR /&gt; layout lattice / columns=2 rowgutter=10 columngutter=10;&lt;BR /&gt; layout overlay / border=true;&lt;BR /&gt; barchart category=sex response = height / group=sex stat=mean name='a';&lt;BR /&gt; discretelegend 'a';&lt;BR /&gt; endlayout;&lt;BR /&gt; layout overlay / border=true;&lt;BR /&gt; barchart category= sex response = height / group=sex stat=mean name='b';&lt;BR /&gt; discretelegend 'b';&lt;BR /&gt; endlayout;&lt;BR /&gt; layout overlay / border=true;&lt;BR /&gt; barchart category=sex response = height / group=age groupdisplay=cluster stat=mean name='c';&lt;BR /&gt; discretelegend 'c';&lt;BR /&gt; endlayout;&lt;BR /&gt; layout overlay / border=true;&lt;BR /&gt; barchart category=sex response=weight / group=age groupdisplay=cluster stat=mean name='d';&lt;BR /&gt; discretelegend 'd';&lt;BR /&gt; endlayout;&lt;BR /&gt; endlayout;&lt;BR /&gt; endgraph;&lt;BR /&gt; end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods _all_ close;&lt;BR /&gt;ods pdf file='C:\four_grafs_gtl.pdf';&lt;BR /&gt;ods graphics / reset width=8in height=6in imagename='four_graphs';&lt;BR /&gt;proc sgrender data=sashelp.class template=four_graphs;&lt;BR /&gt;run;&lt;BR /&gt;ods pdf close;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 17:15:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Multiple-graphs-on-one-page-in-Enterprise-Guide/m-p/229754#M8315</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-10-13T17:15:06Z</dc:date>
    </item>
  </channel>
</rss>

