<?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: SGPLOT output being cut off in ODS PDF in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-output-being-cut-off-in-ODS-PDF/m-p/836718#M25961</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/289103"&gt;@RoddyJ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks for the answer, this hasn't worked I'm afraid. I've tried changing up the order of options and ODS PDF and changing the paper size but sadly no joy.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Time to share sample data that will recreate the problem and complete code, such as the original ods pdf statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you are attempting to change from portrait to landscape in the middle of the document that may not work.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2022 14:14:27 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-10-04T14:14:27Z</dc:date>
    <item>
      <title>SGPLOT output being cut off in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-output-being-cut-off-in-ODS-PDF/m-p/836113#M25949</link>
      <description>&lt;P&gt;I'm currently creating a PDF report which includes figures created with SGPlot in a macro. The output of the SGPLOT on it's own if fine, but in the PDF the edge of the plot is being cut off (see examples below).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anybody suggest why the plots are appearing like this in the pdf?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SGPLOT output:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoddyJ_0-1664551728529.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75754iAA49B199FB7C9C7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoddyJ_0-1664551728529.png" alt="RoddyJ_0-1664551728529.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Same plot in PDF:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoddyJ_1-1664551770389.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75755i957929A5519AE9CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoddyJ_1-1664551770389.png" alt="RoddyJ_1-1664551770389.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;SGPLOT macro and ODS PDF code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*  SGPlot macro */
%macro team_chart(team_short,type);
	ods graphics on /  height=13cm width=20cm ;
	proc sgplot data=&amp;amp;type._medians_final_&amp;amp;team_short. noborder sganno=anno_&amp;amp;type._&amp;amp;team_short._final dattrmap=attrmap_&amp;amp;type. pad=(right=20%);
	xaxis label='Average time interval (hh:mm)' valueattrs=(size=11pt family=arial) labelattrs=(size=12pt family=arial) offsetmin=0.15  values=('-24:00:00'T '-12:00:00'T '00:00:00'T '12:00:00'T '24:00:00'T '36:00:00'T '48:00:00'T);
	yaxis label='Financial year' valueattrs=(size=11pt family=arial) labelattrs=(size=12pt family=arial);
	hbar fyr / response=median group=t_label grouporder=data nooutline attrid=A barwidth=0.7;
	keylegend / title='Median time from:' titleattrs=(size=11pt family=arial weight=bold) valueattrs=(size=10pt family=arial) noborder location=outside;
	run;
%mend team_chart; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* macro used in ODS PDF */
%macro char_teams (type,team_long,team_short,num);
	ods pdf startpage = now; options orientation=landscape;
	footnote h=10pt f=Arial j=c "~{thispage}";
	ods pdf text="~S={cellwidth=27.70cm font_face='Arial' font_size=16pt just=c font_weight=bold foreground=&amp;amp;nhs_blue.}&amp;amp;team_long.";
	ods pdf text=" ";
	ods pdf text=" ";
	ods pdf text="~S={cellwidth=27.70cm font_face='Arial' font_size=12pt just=l font_weight=bold foreground=black}Figure &amp;amp;num. - Median times of &amp;amp;type. organ donation process, &amp;amp;team_long., &amp;amp;st_date. - &amp;amp;end_date.";
	ods pdf text=" ";
	%team_chart(&amp;amp;team_short.,&amp;amp;type.);
%mend char_teams;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Sep 2022 15:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-output-being-cut-off-in-ODS-PDF/m-p/836113#M25949</guid>
      <dc:creator>RoddyJ</dc:creator>
      <dc:date>2022-09-30T15:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT output being cut off in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-output-being-cut-off-in-ODS-PDF/m-p/836142#M25950</link>
      <description>&lt;P&gt;What is the value of your PAPERSIZE?&lt;/P&gt;
&lt;P&gt;You may be able to check with:&lt;/P&gt;
&lt;PRE&gt;proc options option=papersize;
run;&lt;/PRE&gt;
&lt;P&gt;The log will show a result. For my system:&lt;/P&gt;
&lt;PRE&gt; PAPERSIZE=LETTER  Specifies the paper size to use for printing.

&lt;/PRE&gt;
&lt;P&gt;Letter is about 27.9cm x 21.6cm or in landscape 21.6 by 27.9. A4 is 29.7 x 21 cm or 21x29.7 in landscape. PDF will use the papersize setting to determine displayed pages.&lt;/P&gt;
&lt;P&gt;What size is the PDF displayed?&lt;/P&gt;
&lt;P&gt;You may need to set the Orientation &lt;STRONG&gt;before&lt;/STRONG&gt; the ODS PDF if you are not getting the landscape sizes. Or adjust the Papersize option.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 16:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-output-being-cut-off-in-ODS-PDF/m-p/836142#M25950</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-30T16:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT output being cut off in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-output-being-cut-off-in-ODS-PDF/m-p/836284#M25951</link>
      <description>As ballardw said ,try "papersize" option.&lt;BR /&gt;&lt;BR /&gt;options papersize=(200cm 200cm) ;</description>
      <pubDate>Sat, 01 Oct 2022 11:02:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-output-being-cut-off-in-ODS-PDF/m-p/836284#M25951</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-10-01T11:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT output being cut off in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-output-being-cut-off-in-ODS-PDF/m-p/836662#M25960</link>
      <description>Thanks for the answer, this hasn't worked I'm afraid. I've tried changing up the order of options and ODS PDF and changing the paper size but sadly no joy.</description>
      <pubDate>Tue, 04 Oct 2022 08:56:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-output-being-cut-off-in-ODS-PDF/m-p/836662#M25960</guid>
      <dc:creator>RoddyJ</dc:creator>
      <dc:date>2022-10-04T08:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT output being cut off in ODS PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-output-being-cut-off-in-ODS-PDF/m-p/836718#M25961</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/289103"&gt;@RoddyJ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks for the answer, this hasn't worked I'm afraid. I've tried changing up the order of options and ODS PDF and changing the paper size but sadly no joy.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Time to share sample data that will recreate the problem and complete code, such as the original ods pdf statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you are attempting to change from portrait to landscape in the middle of the document that may not work.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 14:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-output-being-cut-off-in-ODS-PDF/m-p/836718#M25961</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-04T14:14:27Z</dc:date>
    </item>
  </channel>
</rss>

