<?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: 2 png graphs are output when only 1 was expected. in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/2-png-graphs-are-output-when-only-1-was-expected/m-p/301788#M10649</link>
    <description>&lt;P&gt;This:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods html file = "ChgDIABPvsbaseDia-base.png"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Creates an HTML file with a .png extension, not a PNG file. Change the extension to ".html". The sgplot.png is the real image file. If you want to change the image file name, use the following:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods graphics / imagename="whatever"; &amp;nbsp;/* Do NOT put an extension on "whatever". The correct extension will be added */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also add RESET=INDEX to reset the filename indexing and allow image files to be overwritten:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods graphics / reset=index imagename="whatever";&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2016 15:57:46 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2016-09-30T15:57:46Z</dc:date>
    <item>
      <title>2 png graphs are output when only 1 was expected.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/2-png-graphs-are-output-when-only-1-was-expected/m-p/301774#M10648</link>
      <description>&lt;P&gt;Version 9.4 (TS1M3)&lt;/P&gt;
&lt;P&gt;Windows 10 64os&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output from prg.&amp;nbsp;gives me 2 graphs .&lt;/P&gt;
&lt;P&gt;One is sgplot.png and the 2nd is&amp;nbsp;ods html file&lt;SPAN&gt;.png.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am thinking that I should be just getting one graph.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Not sure why 2 graphs are being produces.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would like to keep only the html file and I would like not to have to&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;use the delete key for the other.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for you help.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods listing close ;&lt;BR /&gt;ods graphics on / &lt;BR /&gt; width = 6.4 in&lt;BR /&gt; height = 4.8 in&lt;BR /&gt; imagefmt = png&lt;BR /&gt; imagemap = on&lt;BR /&gt; border = no &lt;BR /&gt; ;&lt;BR /&gt; ods html file = "ChgDIABPvsbaseDia-base.png"&lt;BR /&gt; style = journal&lt;BR /&gt; path = 'C:\ProjectName\sasout\png\'&amp;nbsp; &lt;BR /&gt; image_dpi = 96 ;&lt;/P&gt;
&lt;P&gt;Title1 font = 'Arial' H = 1.5 j=c "Figure 2.4 " ;&lt;BR /&gt;Title2 font = 'Arial' H = 1.5 j=c "Test 1" ;&lt;BR /&gt;Title3 font='Arial' H = 1.5 j=c "Change vs. Base" ;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sgplot data = ad2A noautolegend ;&lt;BR /&gt; where avisitn = -1 ;&lt;BR /&gt; scatter y = chgdia x = basedia / &lt;BR /&gt; markerattrs=(symbol=circlefilled size = 4 pt color = blue) ;&lt;BR /&gt; yaxis label = "Chg. Diastolic BP (mmHg) " values = (-20 to 20 by 10 ) ;&lt;BR /&gt; xaxis label = "Baseline Diastolic BP (mmHg)" values = (60 to 100 by 10) ;&lt;BR /&gt; &lt;BR /&gt;run ;&lt;BR /&gt;ods graphics off ;&lt;/P&gt;
&lt;P&gt;ods listing ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Log output:&lt;/P&gt;
&lt;P&gt;4120 ods graphics off ;&lt;BR /&gt;4121 &lt;BR /&gt;4122&amp;nbsp;&lt;BR /&gt;4123 ods listing close ;&lt;BR /&gt;4124 ods graphics on /&lt;BR /&gt;4125 width = 6.4 in&lt;BR /&gt;4126 height = 4.8 in&lt;BR /&gt;4127 imagefmt = png&lt;BR /&gt;4128 imagemap = on&lt;BR /&gt;4129 border = no&lt;BR /&gt;4130 ;&lt;BR /&gt;4131 ods html file = "ChgDiaBPvsbasedia-wk12.png"&lt;BR /&gt;&amp;#12; The SAS System&lt;/P&gt;
&lt;P&gt;4132 style = journal&lt;BR /&gt;4133 path = 'C:\Projects\sasout\png\' &lt;BR /&gt;4134 image_dpi = 96 ;&lt;BR /&gt;NOTE: Writing HTML Body file: ChgDiaBPvsbasedia-wk12.png&lt;BR /&gt;4135 &lt;BR /&gt;4136 Title1 font = 'Arial' H = 1.5 j=c "Figure 2.6 " ;&lt;BR /&gt;4137 Title2 font = 'Arial' H = 1.5 j=c "&amp;nbsp;Test1" ;&lt;BR /&gt;4138 Title3 font='Arial' H = 1.5 j=c "Change Diastolic Mean BP vs. Base BP at Week 12" ; &lt;BR /&gt;4139 proc sgplot data = ad2A noautolegend ;&lt;BR /&gt;4140 where avisitn = 16 ;&lt;BR /&gt;4141 scatter y = chgdia x = basedia /&lt;BR /&gt;4142 markerattrs=(symbol=circlefilled size = 4 pt color = blue) ;&lt;BR /&gt;4143 yaxis label = "Chg. Diastolic BP (mmHg) " values = (-20 to 20 by 10 ) ;&lt;BR /&gt;4144 xaxis label = "Baseline Dialstolic BP (mmHg)" values = (60 to 100 by 10) ;&lt;BR /&gt;4145 &lt;BR /&gt;4146 run ;&lt;/P&gt;
&lt;P&gt;NOTE: PROCEDURE SGPLOT used (Total process time):&lt;BR /&gt; real time 0.26 seconds&lt;BR /&gt; cpu time 0.06 seconds&lt;BR /&gt; &lt;BR /&gt;NOTE: There were 109 observations read from the data set WORK.ADZA2A.&lt;BR /&gt; WHERE avisitn=16;&lt;/P&gt;
&lt;P&gt;4147 ods graphics off ;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 15:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/2-png-graphs-are-output-when-only-1-was-expected/m-p/301774#M10648</guid>
      <dc:creator>JGS</dc:creator>
      <dc:date>2016-09-30T15:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: 2 png graphs are output when only 1 was expected.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/2-png-graphs-are-output-when-only-1-was-expected/m-p/301788#M10649</link>
      <description>&lt;P&gt;This:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods html file = "ChgDIABPvsbaseDia-base.png"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Creates an HTML file with a .png extension, not a PNG file. Change the extension to ".html". The sgplot.png is the real image file. If you want to change the image file name, use the following:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods graphics / imagename="whatever"; &amp;nbsp;/* Do NOT put an extension on "whatever". The correct extension will be added */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also add RESET=INDEX to reset the filename indexing and allow image files to be overwritten:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods graphics / reset=index imagename="whatever";&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 15:57:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/2-png-graphs-are-output-when-only-1-was-expected/m-p/301788#M10649</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-09-30T15:57:46Z</dc:date>
    </item>
  </channel>
</rss>

