<?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 export chart produced with ODS LAYOUT GRIDDED in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850826#M23376</link>
    <description>&lt;P&gt;I did a blog post on how to write ODS LAYOUT output into a single image. Check out&amp;nbsp;&lt;A title="complex-layouts-using-the-sg-procedures" href="https://blogs.sas.com/content/graphicallyspeaking/2022/09/10/complex-layouts-using-the-sg-procedures/" target="_self"&gt;this post&lt;/A&gt;&amp;nbsp;and let me know if you have any questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 18:11:15 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2022-12-22T18:11:15Z</dc:date>
    <item>
      <title>How to export chart produced with ODS LAYOUT GRIDDED</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850810#M23373</link>
      <description>&lt;P&gt;I am trying to put two histograms side by side, and the variables I'm using are different ones that do not lend themselves to using PROC SGPANEL. In the following code, I can produce the plot but not save an image file that has the two charts side by side. Instead, I get a separate image file for each histogram. I cannot find a solution in the documentation for ODS GRAPHICS...&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods listing gpath="C:\Figures\";
ods graphics / imagename="test" imagefmt=png;
ods layout gridded columns=2 advance=table;
ods noproctitle;                       
 proc sgplot data=sashelp.cars;
   histogram MPG_city;
   run;
   proc sgplot data=sashelp.cars;
   histogram MPG_highway;
   run;
 ods select all;                    
ods proctitle;                        

ods layout end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Dec 2022 16:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850810#M23373</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2022-12-22T16:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to export chart produced with ODS LAYOUT GRIDDED</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850824#M23374</link>
      <description>&lt;P&gt;Each PROC SGPLOT step generates a graphic file containing the specified plot(s). ODS LAYOUT just specifies how they are laid out in the output destination. In a web page, the layout is accomplished in the HTML:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;table class="c layoutcontainer" cellspacing="30" cellpadding="0" border="0" summary="Layout table"&amp;gt;
	&amp;lt;col&amp;gt;
	&amp;lt;col&amp;gt;
		&amp;lt;tr class="layoutregion"&amp;gt;
		&amp;lt;td class="c layoutregion"&amp;gt;
			&amp;lt;div class="branch"&amp;gt;&amp;lt;a name="IDX"/&amp;gt;
				&amp;lt;div&amp;gt;
					&amp;lt;div class="c"&amp;gt;
						&amp;lt;img alt="The SGPlot Procedure" src="test1.png" style=" height: 480px; width: 640px;" border="0" class="c"&amp;gt;
					&amp;lt;/div&amp;gt;
				&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;
			&amp;lt;/div&amp;gt;
		&amp;lt;/td&amp;gt;
		&amp;lt;td class="c layoutregion"&amp;gt;
			&amp;lt;div class="branch"&amp;gt;&amp;lt;a name="IDX1"/&amp;gt;
				&amp;lt;div&amp;gt;
					&amp;lt;div class="c"&amp;gt;
						&amp;lt;img alt="The SGPlot Procedure" src="test2.png" style=" height: 480px; width: 640px;" border="0" class="c"&amp;gt;
					&amp;lt;/div&amp;gt;
				&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;
		&amp;lt;/div&amp;gt;
	&amp;lt;/table&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;If you write the output to PDF instead, you can get a single file with the images side by side:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / imagename="test" imagefmt=png;
ods noproctitle;                       
ods pdf file="C:temp\test.pdf";
ods layout gridded columns=2 advance=table;
ods region width=3in;
proc sgplot data=sashelp.cars;
   histogram MPG_city;
run;
ods region width=3in;
proc sgplot data=sashelp.cars;
   histogram MPG_highway;
run;
ods select all;                    
ods proctitle;                        
ods layout end;
ods pdf close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Does that help?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 18:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850824#M23374</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2022-12-22T18:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to export chart produced with ODS LAYOUT GRIDDED</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850825#M23375</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/How-to-save-out-PLOT-Picture-explicitly/m-p/832204/highlight/false#M23144" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/How-to-save-out-PLOT-Picture-explicitly/m-p/832204/highlight/false#M23144&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 18:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850825#M23375</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-22T18:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to export chart produced with ODS LAYOUT GRIDDED</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850826#M23376</link>
      <description>&lt;P&gt;I did a blog post on how to write ODS LAYOUT output into a single image. Check out&amp;nbsp;&lt;A title="complex-layouts-using-the-sg-procedures" href="https://blogs.sas.com/content/graphicallyspeaking/2022/09/10/complex-layouts-using-the-sg-procedures/" target="_self"&gt;this post&lt;/A&gt;&amp;nbsp;and let me know if you have any questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 18:11:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850826#M23376</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-12-22T18:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to export chart produced with ODS LAYOUT GRIDDED</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850842#M23377</link>
      <description>&lt;P&gt;That worked with some trial and error to get the settings right. The outputted plots have blue cell borders. Is there a way to control the cell borders for the layout? I could not see an option, but thought I would ask. These blue borders are not matching the style of other figures.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 19:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850842#M23377</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2022-12-22T19:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to export chart produced with ODS LAYOUT GRIDDED</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850860#M23378</link>
      <description>That's an awesome blog!</description>
      <pubDate>Thu, 22 Dec 2022 20:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850860#M23378</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2022-12-22T20:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to export chart produced with ODS LAYOUT GRIDDED</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850861#M23379</link>
      <description>&lt;P&gt;By default, ODS PRINTER will have a different style than HTML. Did you use the STYLE= option on the ODS PRINTER statement to force the style to be the same?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 20:36:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850861#M23379</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-12-22T20:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to export chart produced with ODS LAYOUT GRIDDED</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850864#M23380</link>
      <description>This suggestion did the trick. .</description>
      <pubDate>Thu, 22 Dec 2022 21:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-export-chart-produced-with-ODS-LAYOUT-GRIDDED/m-p/850864#M23380</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2022-12-22T21:19:28Z</dc:date>
    </item>
  </channel>
</rss>

