<?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 Customizing size and font of SGPLOT graphs in PDF in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Customizing-size-and-font-of-SGPLOT-graphs-in-PDF/m-p/244267#M8839</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to output my 3 graphs I produced using SGPLOT into PDF. I use ods graphics options to try to control for the size and fonts of the graphics but the graphs keep turning out to be way to small for an 8x11 paper. I've uploaded a sample output. Below is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;goptions /*reset=all*/ device=PDF ftitle="Thorndale AMT" ftext="Thorndale AMT" noborder;&lt;BR /&gt;options papersize=letter nodate nonumber orientation=landscape leftmargin=.5in rightmargin=.5in topmargin=.5in bottommargin=.5in;&lt;BR /&gt;options nobyline;&lt;/P&gt;&lt;P&gt;ods pdf file="&amp;amp;odsfile" dpi=300;&lt;BR /&gt;ods graphics on reset=all/ width=10in scale=on border=off imagefmt=png; /*outputfmt=pdf; */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title1 J=C font="&amp;amp;font/bold" H=14pt "TITLE";&lt;BR /&gt;Footnote1 f="Thorndale AMT" justify=left h=10pt "FOOTNOTE";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgplot data=SOURCE;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;series x=TIME&amp;nbsp;y=PRICE/&lt;BR /&gt;lineattrs=(pattern=1)&lt;BR /&gt;group=CUSTOMER&lt;BR /&gt;grouplc=&lt;SPAN&gt;CUSTOMER&lt;/SPAN&gt;&lt;BR /&gt;name='grouping';&lt;BR /&gt;keylegend 'grouping' / type=linecolor;&lt;BR /&gt;xaxis label="Time" values=(0 to 108 by 6);&lt;BR /&gt;yaxis label="Price Change" values=(-0.6 to 0.6 by 0.1);&lt;BR /&gt;refline 0/ lineattrs=(thickness=0.5 color=black);&lt;BR /&gt;format &lt;SPAN&gt;TIME&amp;nbsp;&lt;/SPAN&gt;best12. &lt;SPAN&gt;PRICE&amp;nbsp;&lt;/SPAN&gt;percent7.2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The title is positioned where I want it to ve (i.e. follows the margin of 0.5 inch left/right as coded) but the graph itself is still very tiny even after I set it as width=10in under ods graphics. Anyone know what the problem is?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12205iF1B445D162DB17EE/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Untitled.png" title="Untitled.png" /&gt;</description>
    <pubDate>Mon, 18 Jan 2016 19:58:49 GMT</pubDate>
    <dc:creator>dl0324</dc:creator>
    <dc:date>2016-01-18T19:58:49Z</dc:date>
    <item>
      <title>Customizing size and font of SGPLOT graphs in PDF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customizing-size-and-font-of-SGPLOT-graphs-in-PDF/m-p/244267#M8839</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to output my 3 graphs I produced using SGPLOT into PDF. I use ods graphics options to try to control for the size and fonts of the graphics but the graphs keep turning out to be way to small for an 8x11 paper. I've uploaded a sample output. Below is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;goptions /*reset=all*/ device=PDF ftitle="Thorndale AMT" ftext="Thorndale AMT" noborder;&lt;BR /&gt;options papersize=letter nodate nonumber orientation=landscape leftmargin=.5in rightmargin=.5in topmargin=.5in bottommargin=.5in;&lt;BR /&gt;options nobyline;&lt;/P&gt;&lt;P&gt;ods pdf file="&amp;amp;odsfile" dpi=300;&lt;BR /&gt;ods graphics on reset=all/ width=10in scale=on border=off imagefmt=png; /*outputfmt=pdf; */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title1 J=C font="&amp;amp;font/bold" H=14pt "TITLE";&lt;BR /&gt;Footnote1 f="Thorndale AMT" justify=left h=10pt "FOOTNOTE";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgplot data=SOURCE;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;series x=TIME&amp;nbsp;y=PRICE/&lt;BR /&gt;lineattrs=(pattern=1)&lt;BR /&gt;group=CUSTOMER&lt;BR /&gt;grouplc=&lt;SPAN&gt;CUSTOMER&lt;/SPAN&gt;&lt;BR /&gt;name='grouping';&lt;BR /&gt;keylegend 'grouping' / type=linecolor;&lt;BR /&gt;xaxis label="Time" values=(0 to 108 by 6);&lt;BR /&gt;yaxis label="Price Change" values=(-0.6 to 0.6 by 0.1);&lt;BR /&gt;refline 0/ lineattrs=(thickness=0.5 color=black);&lt;BR /&gt;format &lt;SPAN&gt;TIME&amp;nbsp;&lt;/SPAN&gt;best12. &lt;SPAN&gt;PRICE&amp;nbsp;&lt;/SPAN&gt;percent7.2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The title is positioned where I want it to ve (i.e. follows the margin of 0.5 inch left/right as coded) but the graph itself is still very tiny even after I set it as width=10in under ods graphics. Anyone know what the problem is?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12205iF1B445D162DB17EE/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Untitled.png" title="Untitled.png" /&gt;</description>
      <pubDate>Mon, 18 Jan 2016 19:58:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customizing-size-and-font-of-SGPLOT-graphs-in-PDF/m-p/244267#M8839</guid>
      <dc:creator>dl0324</dc:creator>
      <dc:date>2016-01-18T19:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing size and font of SGPLOT graphs in PDF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customizing-size-and-font-of-SGPLOT-graphs-in-PDF/m-p/244277#M8840</link>
      <description>&lt;P&gt;Just a note that GOPTIONS don't affect the ODS Graphics output, and SGPLOT is under ODS Graphics.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 19:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customizing-size-and-font-of-SGPLOT-graphs-in-PDF/m-p/244277#M8840</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-18T19:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing size and font of SGPLOT graphs in PDF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customizing-size-and-font-of-SGPLOT-graphs-in-PDF/m-p/244279#M8841</link>
      <description>&lt;P&gt;I do not get a "tiny" graph at SAS 9.4m3. What version of SAS are you using? Also, you might want to remove the NOGTITLE option to reclaim some of the space between the graph and the title.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 19:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customizing-size-and-font-of-SGPLOT-graphs-in-PDF/m-p/244279#M8841</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-01-18T19:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing size and font of SGPLOT graphs in PDF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customizing-size-and-font-of-SGPLOT-graphs-in-PDF/m-p/244282#M8842</link>
      <description>I'm using SAS 9.4 TS Level 1M2. I got rid of NOGTITLE but seems to have no change. The overall graph and titles are all shown in a small box that's not fitted to the size of the pdf. I uploaded the sample output hope it helps.</description>
      <pubDate>Mon, 18 Jan 2016 19:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customizing-size-and-font-of-SGPLOT-graphs-in-PDF/m-p/244282#M8842</guid>
      <dc:creator>dl0324</dc:creator>
      <dc:date>2016-01-18T19:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing size and font of SGPLOT graphs in PDF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customizing-size-and-font-of-SGPLOT-graphs-in-PDF/m-p/244287#M8843</link>
      <description>&lt;P&gt;I still was not able to reproduce the problem with the given test program; but looking at the picture you uploaded, it looks like the most likely culprit&amp;nbsp;is an&amp;nbsp;ODS GRAPHICS / RESET hiding somewhere in your code that effectively resets your graph size to 640x480.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 20:12:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customizing-size-and-font-of-SGPLOT-graphs-in-PDF/m-p/244287#M8843</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-01-18T20:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing size and font of SGPLOT graphs in PDF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customizing-size-and-font-of-SGPLOT-graphs-in-PDF/m-p/244295#M8844</link>
      <description>&lt;P&gt;A few notes:&lt;/P&gt;
&lt;P&gt;1) You don't need ODS GRAPHICS ON to call PROC SGPLOT.&lt;/P&gt;
&lt;P&gt;2) Be sure to put the RESET=ALL option after the slash. The way you have it is a syntax error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS graphics on / reset&amp;nbsp;width=10in scale=on border=off imagefmt=png;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 20:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customizing-size-and-font-of-SGPLOT-graphs-in-PDF/m-p/244295#M8844</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-01-18T20:51:41Z</dc:date>
    </item>
  </channel>
</rss>

