<?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: I need help to make this loop work in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/I-need-help-to-make-this-loop-work/m-p/540585#M76124</link>
    <description>&lt;P&gt;In your Where() clause, you need to remove the {} around the "i" variable.&lt;/P&gt;
&lt;P&gt;In the Save Picture, you need to convert the value of "i" to a character before it can be concatenated to the string.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
For ( i = 1951, i &amp;lt;= 2021, i++, 


	gb = dt &amp;lt;&amp;lt; Bivariate(
		Y( :PRCPC ),
		X( :Mes ),
		Fit Each Value( {Line Color( {208, 64, 86} )} ),
		Fit Line( {Line Color( {45, 177, 53} )} ),
		Fit Spline( 20.13724, {Line Color( {64, 110, 211} )} ),
		Where( :Any == i),
		SendToReport(
			Dispatch( {}, "Bivar Plot", FrameBox, {Frame Size( 486, 411 )} ),
			Dispatch( {}, "Linear Fit", "Summary of Fit",OutlineBox, {Close( 1 )} )
		),

	);
	gb &amp;lt;&amp;lt; Save Picture( "/Users/mgc/Desktop/" || char(i) || ".png", PNG );
	
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 05 Sep 2022 20:27:25 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-09-05T20:27:25Z</dc:date>
    <item>
      <title>I need help to make this loop work</title>
      <link>https://community.jmp.com/t5/Discussions/I-need-help-to-make-this-loop-work/m-p/540578#M76123</link>
      <description>&lt;P&gt;Hello everybody.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
For ( i = 1951, i &amp;lt;= 2021, i++, 


	gb = dt &amp;lt;&amp;lt; Bivariate(
		Y( :PRCPC ),
		X( :Mes ),
		Fit Each Value( {Line Color( {208, 64, 86} )} ),
		Fit Line( {Line Color( {45, 177, 53} )} ),
		Fit Spline( 20.13724, {Line Color( {64, 110, 211} )} ),
		Where( :Any == [i]),
		SendToReport(
			Dispatch( {}, "Bivar Plot", FrameBox, {Frame Size( 486, 411 )} ),
			Dispatch( {}, "Linear Fit", "Summary of Fit",OutlineBox, {Close( 1 )} )
		),

	);
	gb &amp;lt;&amp;lt; Save Picture( "/Users/mgc/Desktop/" || :Any == [i] || ".png", PNG );
	
),

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;. Thank you in advance&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 15:57:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-need-help-to-make-this-loop-work/m-p/540578#M76123</guid>
      <dc:creator>gallardet</dc:creator>
      <dc:date>2023-06-09T15:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: I need help to make this loop work</title>
      <link>https://community.jmp.com/t5/Discussions/I-need-help-to-make-this-loop-work/m-p/540585#M76124</link>
      <description>&lt;P&gt;In your Where() clause, you need to remove the {} around the "i" variable.&lt;/P&gt;
&lt;P&gt;In the Save Picture, you need to convert the value of "i" to a character before it can be concatenated to the string.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
For ( i = 1951, i &amp;lt;= 2021, i++, 


	gb = dt &amp;lt;&amp;lt; Bivariate(
		Y( :PRCPC ),
		X( :Mes ),
		Fit Each Value( {Line Color( {208, 64, 86} )} ),
		Fit Line( {Line Color( {45, 177, 53} )} ),
		Fit Spline( 20.13724, {Line Color( {64, 110, 211} )} ),
		Where( :Any == i),
		SendToReport(
			Dispatch( {}, "Bivar Plot", FrameBox, {Frame Size( 486, 411 )} ),
			Dispatch( {}, "Linear Fit", "Summary of Fit",OutlineBox, {Close( 1 )} )
		),

	);
	gb &amp;lt;&amp;lt; Save Picture( "/Users/mgc/Desktop/" || char(i) || ".png", PNG );
	
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Sep 2022 20:27:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-need-help-to-make-this-loop-work/m-p/540585#M76124</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-09-05T20:27:25Z</dc:date>
    </item>
  </channel>
</rss>

