<?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: Output Graph as .png in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/427864#M14739</link>
    <description>&lt;P&gt;GOPTIONS do not apply when using the SG procedures. Use the ODS GRAPHICS statement for global options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jan 2018 22:28:18 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2018-01-15T22:28:18Z</dc:date>
    <item>
      <title>Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/427862#M14737</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was trying to output my graph as a PNG file, but nothing came out under my directory. Following is my code:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;filename grafout 'E:\test.png';
goptions reset=all gsfname=grafout gsfmode=replace device=png;
proc sgplot data=plot;
   vbox value / category=time group=TreatName ;
run;
quit;
filename grafout clear;&lt;/PRE&gt;
&lt;P&gt;Anyone has any idea about output the graph? Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 22:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/427862#M14737</guid>
      <dc:creator>hua</dc:creator>
      <dc:date>2018-01-15T22:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/427863#M14738</link>
      <description>&lt;P&gt;Do it this way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing gpath='E:\';
ods graphics / imagename="test" imagefmt=png;
proc sgplot data=plot;
   vbox value / category=time group=TreatName ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jan 2018 22:26:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/427863#M14738</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-01-15T22:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/427864#M14739</link>
      <description>&lt;P&gt;GOPTIONS do not apply when using the SG procedures. Use the ODS GRAPHICS statement for global options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 22:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/427864#M14739</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-01-15T22:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/427865#M14740</link>
      <description>ODS GRAPHICS works well! Thanks for your help! I could get the output now!</description>
      <pubDate>Mon, 15 Jan 2018 22:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/427865#M14740</guid>
      <dc:creator>hua</dc:creator>
      <dc:date>2018-01-15T22:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/427872#M14741</link>
      <description>By the way, do you know how to end this ODS GRAPHICS? Also, do you know how to set the ticks inside? Since it's showed that "TICKSTYLE=INSIDE " could only be applied in SAS 9.4M5 version or later. Mine is SAS 9.4M2.</description>
      <pubDate>Mon, 15 Jan 2018 23:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/427872#M14741</guid>
      <dc:creator>hua</dc:creator>
      <dc:date>2018-01-15T23:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/427912#M14744</link>
      <description>&lt;P&gt;ODS GRAPHICS is not an ODS destination statement, like HTML or PDF. It does not have to be closed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS GRAPHICS can be turned on and off (e.g. ods graphics off;); but the on/off does not affect the SG procedures. The on/off for controlling ODS Graphics output from SAS/STAT and other procedures that support that output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you said, the TICKSTYLE option was added after 9.4m2; however, it is definitely possible to annotate the tick marks on the inside. Here is a reference to a paper I wrote about annotation that should help you get started if you have not used annotation in this system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0ahUKEwjb55ec09vYAhWHq1QKHQpPC_8QFggnMAA&amp;amp;url=https%3A%2F%2Fwww.lexjansen.com%2Fwuss%2F2012%2F170.pdf&amp;amp;usg=AOvVaw3ACpvEV6ua6S3XoCv16a1T" target="_blank"&gt;Now You Can Annotate Your Statistical Graphics Procedure Graphs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 04:34:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/427912#M14744</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-01-16T04:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/528644#M17686</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Using this code , while running more than one time in a session it is creating with different file name. is there any way we can replace the existing file while running more than one time?&amp;nbsp; I am running the below code; and result is attached. Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;filename grafout '/sasdata/picture.png';&lt;BR /&gt;goptions reset=all&lt;BR /&gt;gsfname=grafout&lt;BR /&gt;gsfmode=replace&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;ods listing gpath='/sasdata/';&lt;BR /&gt;ods graphics / imagename="picture" imagefmt=png;&lt;BR /&gt;PROC SGPLOT DATA = OVRDATA7;&lt;BR /&gt;SERIES X = EXTRACT_DT Y = Overcnt;&lt;BR /&gt;SERIES X = EXTRACT_DT Y = UBL3Sig;&lt;BR /&gt;SERIES X = EXTRACT_DT Y = LBL3Sig;&lt;BR /&gt;TITLE 'Override Graph';&lt;BR /&gt;RUN;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jan 2019 21:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/528644#M17686</guid>
      <dc:creator>benhaz</dc:creator>
      <dc:date>2019-01-20T21:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/528679#M17687</link>
      <description>&lt;P&gt;Yes, just add a RESET or RESET=INDEX after the / on the ODS GRAPHICS statement. If you use RESET, make sure it is the *first* option after the slash. Otherwise, you might reset other option on your statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods graphics / reset imagename="picture" imagefmt=png;&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;</description>
      <pubDate>Mon, 21 Jan 2019 04:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/528679#M17687</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-01-21T04:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/528688#M17688</link>
      <description>&lt;P&gt;Thank you so much Dan. Now it is working perfectly. Appreciate your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 06:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/528688#M17688</guid>
      <dc:creator>benhaz</dc:creator>
      <dc:date>2019-01-21T06:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/528689#M17689</link>
      <description>&lt;P&gt;Thank You so much Dan. Now it is working fine. Appreciate your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 06:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/528689#M17689</guid>
      <dc:creator>benhaz</dc:creator>
      <dc:date>2019-01-21T06:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/534750#M17774</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used below code to create PNG graph but I am not getting title and footnote in outside the graph. I have used nogtitle option but its not working.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 08:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/534750#M17774</guid>
      <dc:creator>SanjayAhir</dc:creator>
      <dc:date>2019-02-12T08:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/534826#M17780</link>
      <description>&lt;P&gt;What ODS destination are you using?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 13:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/534826#M17780</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-02-12T13:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/534841#M17781</link>
      <description>I am using&lt;BR /&gt;&lt;BR /&gt;Ods listing gpath = '';&lt;BR /&gt;Ods graphics ;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Feb 2019 13:58:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/534841#M17781</guid>
      <dc:creator>SanjayAhir</dc:creator>
      <dc:date>2019-02-12T13:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/534847#M17782</link>
      <description>&lt;P&gt;NOGTITLE / NOGFOOTNOTE does not work for ODS LISTING for graphical output, as all you get is an image with no container (such as an HTML page). Are you just trying to suppress the titles?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 14:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/534847#M17782</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-02-12T14:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/534848#M17783</link>
      <description>&lt;P&gt;NOGTITLE / NOGFOOTNOTE does not work for ODS LISTING for graphical output, as all you get is an image with no container (such as an HTML page). Are you just trying to suppress the titles?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 14:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/534848#M17783</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-02-12T14:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/534852#M17784</link>
      <description>&lt;P&gt;I am not suppressing title, I want title and footnote outside of the graph area.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 14:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/534852#M17784</guid>
      <dc:creator>SanjayAhir</dc:creator>
      <dc:date>2019-02-12T14:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/534853#M17785</link>
      <description>&lt;P&gt;Can you post your picture and show where you want your titles located?&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>Tue, 12 Feb 2019 14:29:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/534853#M17785</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-02-12T14:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Output Graph as .png</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/634266#M19667</link>
      <description>THANK YOU FOR THE QUESTION AND TO THE PERSON GIVING THE ANSWER!! I had looked all over for how to do this!</description>
      <pubDate>Mon, 23 Mar 2020 20:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Output-Graph-as-png/m-p/634266#M19667</guid>
      <dc:creator>stevehillis</dc:creator>
      <dc:date>2020-03-23T20:33:02Z</dc:date>
    </item>
  </channel>
</rss>

