<?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 a group of graphs in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Saving-a-group-of-graphs/m-p/35177#M20757</link>
    <description>&lt;P&gt;If you look at your conour plot object (try a Show(obj)) you'll see that you have a list of contour plots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you send a message to a list, the message is sent to each item in the list. Since you're sending a save message, each item in the list is getting saved, but they are all being saved to the same file name. The last one "wins".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To save each plot as a picture, process the list of plots one at a time. Try using this loop instead of your save statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = 1, i &amp;lt;= N Items(obj), i++, 
	name = "Wafer" || Char(i) || ".jpg"; // make a unique name for each picture
	obj[i] &amp;lt;&amp;lt; save picture( name, jpeg );
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 01 Feb 2017 16:27:33 GMT</pubDate>
    <dc:creator>Melanie_J_Drake</dc:creator>
    <dc:date>2017-02-01T16:27:33Z</dc:date>
    <item>
      <title>Saving a group of graphs</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-group-of-graphs/m-p/35137#M20727</link>
      <description>&lt;P&gt;Hello, I have&amp;nbsp;the script for creating different contour plots that I need. I have&amp;nbsp;to save each of them as .jpg. I tried to do that by using the following script, however it only save the last one. Can anybody help me? I am a new used of JMP and I think the challenge is that this script will be used for different data tables so that it is necessary to save the pictures in an automatic way because not in all the cases the number of plots will be the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;obj=Contour Plot(&lt;BR /&gt;X( :DIE_IDX_ABS_X, :DIE_IDX_ABS_Y ),&lt;BR /&gt;Y( :CD_R4_um ),&lt;BR /&gt;Show Data Points( 1 ),&lt;BR /&gt;Fill Areas( 1 ),&lt;BR /&gt;Label Contours( 0 ),&lt;BR /&gt;By( :Width_CD, :DUPLO_WAFER_ID ),&lt;BR /&gt;Transform( "None" )&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;obj &amp;lt;&amp;lt; save picture( "Wafer.jpg", jpeg ); // picture name&lt;/P&gt;&lt;P&gt;close(dt)&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 16:37:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-group-of-graphs/m-p/35137#M20727</guid>
      <dc:creator>Gabriela_MJ</dc:creator>
      <dc:date>2017-01-31T16:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a group of graphs</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-group-of-graphs/m-p/35177#M20757</link>
      <description>&lt;P&gt;If you look at your conour plot object (try a Show(obj)) you'll see that you have a list of contour plots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you send a message to a list, the message is sent to each item in the list. Since you're sending a save message, each item in the list is getting saved, but they are all being saved to the same file name. The last one "wins".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To save each plot as a picture, process the list of plots one at a time. Try using this loop instead of your save statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = 1, i &amp;lt;= N Items(obj), i++, 
	name = "Wafer" || Char(i) || ".jpg"; // make a unique name for each picture
	obj[i] &amp;lt;&amp;lt; save picture( name, jpeg );
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Feb 2017 16:27:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-group-of-graphs/m-p/35177#M20757</guid>
      <dc:creator>Melanie_J_Drake</dc:creator>
      <dc:date>2017-02-01T16:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a group of graphs</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-group-of-graphs/m-p/35199#M20772</link>
      <description>Thank you very much! :)&lt;/img&gt;</description>
      <pubDate>Thu, 02 Feb 2017 11:56:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-group-of-graphs/m-p/35199#M20772</guid>
      <dc:creator>Gabriela_MJ</dc:creator>
      <dc:date>2017-02-02T11:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a group of graphs</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-group-of-graphs/m-p/587543#M79288</link>
      <description>&lt;P&gt;Thanks for your explanation! But I'm wondering is there a method to save the whole report as a single picture, just like we do File -&amp;gt; Export -&amp;gt; Image?&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 05:00:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-group-of-graphs/m-p/587543#M79288</guid>
      <dc:creator>Setsuna</dc:creator>
      <dc:date>2023-01-07T05:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a group of graphs</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-a-group-of-graphs/m-p/587565#M79291</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/46102"&gt;@Setsuna&lt;/a&gt;&amp;nbsp;- you can use any one of the resulting platforms to find the top-most box in the window, and save the picture from there:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Open("$SAMPLE_DATA/Iris.jmp");
cp = dt &amp;lt;&amp;lt; Contour Plot(
	SendToByGroup( {:Species == "setosa"} ),
	X( :Sepal length, :Sepal width ),
	Y( :Petal length ),
	Show Data Points( 0 ),
	Fill Areas( 0 ),
	Label Contours( 0 ),
	Transform( "Range Normalized" ),
	By( :Species )
);
(cp[1] &amp;lt;&amp;lt; Top Report) &amp;lt;&amp;lt; Save Picture("$TEMP/contours.png");
Open("$TEMP/contours.png"); &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 07 Jan 2023 18:29:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-a-group-of-graphs/m-p/587565#M79291</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2023-01-07T18:29:05Z</dc:date>
    </item>
  </channel>
</rss>

