<?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: Saving Graph in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Saving-Graph/m-p/5082#M5081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although I have limited experience of Windows, is it possible that the save-error in the first script was caused by the use of a lower case drive letter in the path? As in &lt;EM&gt;wind &amp;lt;&amp;lt; save picture("c:\temp\Graphic.JPG", JPEG)&lt;/EM&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2012 21:33:08 GMT</pubDate>
    <dc:creator>ms</dc:creator>
    <dc:date>2012-06-18T21:33:08Z</dc:date>
    <item>
      <title>Saving Graph</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-Graph/m-p/5080#M5079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to run JMP from the commandline on a server ---- periodically the data will be dumped from a database and invoke a JMP script --- this script will format the data via Graph Builder ---&amp;nbsp;&amp;nbsp; It all appears to be working but I need a way to save the Graph Image to a file (... PDF would be fine) and close/exit JMP.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -----&amp;nbsp;&amp;nbsp; the graph does not appear and no files created..... --- and I don't know how to close/exit JMP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Open data table from QA system and create graph for Open Defects by severity and version number//&lt;/P&gt;&lt;P&gt;&amp;nbsp; dt = Open("$SAMPLE_IMPORT_DATA/GalaxyFULL_TEST.xls");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Build the visualization Graph to show severity of open defects//&lt;/P&gt;&lt;P&gt;wind = New Window( header,&lt;/P&gt;&lt;P&gt;Graph Builder(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff9900;"&gt;&lt;EM&gt;.....................Graph Builder script goes here.................................&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wind &amp;lt;&amp;lt; save picture("c:\temp\Graphic.JPG", JPEG);&lt;/P&gt;&lt;P&gt;wind &amp;lt;&amp;lt; Close Window;&lt;/P&gt;&lt;P&gt;Close( dt, No Save );&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 20:38:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-Graph/m-p/5080#M5079</guid>
      <dc:creator>twaintwist</dc:creator>
      <dc:date>2012-06-15T20:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Graph</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-Graph/m-p/5081#M5080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK --- i've stepped through my script and it appears to be working now ---- not exactly sure where the problem lies.....&amp;nbsp;&amp;nbsp; The following works......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// create a new directory for day of the week//&lt;/P&gt;&lt;P&gt;baseDir = "C:\temp\";&lt;/P&gt;&lt;P&gt;dir = baseDir || Substitute(MDYHMS(Today()), "/", "-", ":", ".");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CreateDirectory(dir);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Current Directory (dir);&lt;/P&gt;&lt;P&gt;// save graph to new directory//&lt;/P&gt;&lt;P&gt;wind &amp;lt;&amp;lt; save picture("D2L Open Defects.JPG", JPEG);&lt;/P&gt;&lt;P&gt;wind &amp;lt;&amp;lt; close Window;&lt;/P&gt;&lt;P&gt;Close( dt, No Save );&lt;/P&gt;&lt;P&gt;Exit (No Save);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 19:36:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-Graph/m-p/5081#M5080</guid>
      <dc:creator>twaintwist</dc:creator>
      <dc:date>2012-06-18T19:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Graph</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-Graph/m-p/5082#M5081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although I have limited experience of Windows, is it possible that the save-error in the first script was caused by the use of a lower case drive letter in the path? As in &lt;EM&gt;wind &amp;lt;&amp;lt; save picture("c:\temp\Graphic.JPG", JPEG)&lt;/EM&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 21:33:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-Graph/m-p/5082#M5081</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2012-06-18T21:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Graph</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-Graph/m-p/5083#M5082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MS ----&amp;nbsp; thanks for the suggestion ----&amp;nbsp;&amp;nbsp; I tried with lower case and uppercase drive letter and it doesn't seem to make a difference...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm still puzzled but at least it's working now.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 00:34:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-Graph/m-p/5083#M5082</guid>
      <dc:creator>twaintwist</dc:creator>
      <dc:date>2012-06-19T00:34:01Z</dc:date>
    </item>
  </channel>
</rss>

