<?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: Saving plots in a pdf file with a 3x3 layout format in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Saving-plots-in-a-pdf-file-with-a-3x3-layout-format/m-p/737147#M38697</link>
    <description>&lt;P&gt;Please refer to &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0yadqm4wsfapgn1hzekfvu1ex0g.htm" target="_self"&gt;this section&lt;/A&gt; to adjust the graph size of sgplot.&lt;/P&gt;
&lt;P&gt;For example, try the following code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / width=2in;
ods graphics on / height=2in;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 02:22:36 GMT</pubDate>
    <dc:creator>japelin</dc:creator>
    <dc:date>2021-04-27T02:22:36Z</dc:date>
    <item>
      <title>Saving plots in a pdf file with a 3x3 layout format</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Saving-plots-in-a-pdf-file-with-a-3x3-layout-format/m-p/736997#M38690</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not manage to save my plots in a pdf file with 3x3 layout format.&lt;/P&gt;&lt;P&gt;It is working fine with `ods graphics` but not with `ods pdf`.&lt;/P&gt;&lt;P&gt;Here is a simple example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro plot_hist;
%do i=1 %to 9;

data sample (keep=age);
 do i = 1 to 100;
   age = abs (floor (rand('triangle',0.1) * 100 ) );
   output;
 end;
run;

ods region;
proc sgplot data=sample;
 HISTOGRAM age / binwidth=1 binstart=0 ;
 TITLE "Age";
 xaxis values=(0 to 100 by 1) offsetmin=.01 offsetmax=.01 ;
RUN; 
%end;
%mend;

ods pdf file="&amp;amp;DIR_RES\desc_histo.pdf";
/*ods graphics / width=1000px height=400px;*/
ods layout start rows=3 columns=3;
%plot_hist
ods layout end;
ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks for your assistance&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 14:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Saving-plots-in-a-pdf-file-with-a-3x3-layout-format/m-p/736997#M38690</guid>
      <dc:creator>ctisseuil</dc:creator>
      <dc:date>2021-04-26T14:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Saving plots in a pdf file with a 3x3 layout format</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Saving-plots-in-a-pdf-file-with-a-3x3-layout-format/m-p/737147#M38697</link>
      <description>&lt;P&gt;Please refer to &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0yadqm4wsfapgn1hzekfvu1ex0g.htm" target="_self"&gt;this section&lt;/A&gt; to adjust the graph size of sgplot.&lt;/P&gt;
&lt;P&gt;For example, try the following code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / width=2in;
ods graphics on / height=2in;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 02:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Saving-plots-in-a-pdf-file-with-a-3x3-layout-format/m-p/737147#M38697</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-04-27T02:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Saving plots in a pdf file with a 3x3 layout format</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Saving-plots-in-a-pdf-file-with-a-3x3-layout-format/m-p/737176#M38698</link>
      <description>Thank you very much !</description>
      <pubDate>Tue, 27 Apr 2021 06:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Saving-plots-in-a-pdf-file-with-a-3x3-layout-format/m-p/737176#M38698</guid>
      <dc:creator>ctisseuil</dc:creator>
      <dc:date>2021-04-27T06:57:27Z</dc:date>
    </item>
  </channel>
</rss>

