<?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: For loop variable graph reference line in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/For-loop-variable-graph-reference-line/m-p/83054#M37414</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2557"&gt;@John_Powell_JMP&lt;/a&gt;&amp;nbsp;for the HTML question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The clone box operation turns a live report into a static set of display boxes. I'm not sure how much interactivity you can expect (I think none.) You might be able to use &amp;lt;&amp;lt;saveHtml rather than &amp;lt;&amp;lt;saveInteractiveHtml and get the output you expect, or it may do exactly the same thing.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Nov 2018 13:22:43 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2018-11-12T13:22:43Z</dc:date>
    <item>
      <title>For loop variable graph reference line</title>
      <link>https://community.jmp.com/t5/Discussions/For-loop-variable-graph-reference-line/m-p/83017#M37383</link>
      <description>&lt;P&gt;I am generating a series of graphs (10 or more graphs in total) with a for loop; however, after the sixth graph the reference lines do not appear in the graph. After about the 10th or 11th graph, the reference lines appear again in the graphs. I have tried adding wait(0); in multiple locations but that hasn't helped. I have tried using different types of graph, standard bivariate vs graph builder, I have tried reducing the size of my original dataset to see if it is a memory issue. None of these attempts have worked and I am looking for any suggestions. The second issue I would like to address which is less of a problem than the first issue&amp;nbsp;is how to close the temp table created without closing the graphs I have created and saved in my output window. I have tried using link to table (0), tried closing the tables after generating the output window and still does not work. Any suggestions is greatly appreciated.&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( w = 1, w &amp;lt;= row_count, w++,
	Stmt = CofA_dt10:Parameter[w];
	CofA_dt9 &amp;lt;&amp;lt; clear column selection;
	CofA_dt9 &amp;lt;&amp;lt; select where( :Parameter == Eval( Parse( Eval Insert( "Stmt" ) ) ) );
	CofA_dt9a = CofA_dt9 &amp;lt;&amp;lt; Subset( Output Table( "TempTable" || Char( w ) ), );
 
　
	Mean_4sigmaUCL = CofA_dt9a:UCL_Line[w];
	Mean_4sigmaLCL = CofA_dt9a:LCL_Line[w];
 
 
	output2 &amp;lt;&amp;lt; append(
		V List Box(
			CofA_dt9a &amp;lt;&amp;lt; 
 
			Bivariate(
				Y( :test_value ),
				X( :shelf_life_start_date ), 
 
				SendToReport(
					Dispatch(
						{},
						"Bivariate Fit of test_value By shelf_life_start_date",
						OutlineBox,
						{Set Title(
							"Parameter Value by shelf_life_start_date -" || Eval(
								Parse( Eval Insert( "Stmt" ) )
							)
						)}
					), 
 
					Dispatch(
						{},
						"2",
						ScaleBox,
						{Add Ref Line( Mean_4sigmaUCL, "Solid", "Red", "Mean_4s_UCL", 1 ),
						Add Ref Line( Mean_4sigmaLCL, "Solid", "Red", "Mean_4s_LCL" )}
					),
					Dispatch( {}, "1", ScaleBox, {Label Row( Label Orientation( "Angled" ) )} ),
					Dispatch( {}, "test_value", TextEditBox, {Set Text( "Parameter Value" )} ), 
 
					Dispatch(
						{},
						"Bivar Plot",
						FrameBox,
						{Frame Size( 1018, 423 ), Row Legend(
							Flagging,
							Color( 1 ),
							Color Theme( "JMP Default" ),
							Marker( 1 ),
							Marker Theme( "Standard" ),
							Continuous Scale( 0 ),
							Reverse Scale( 1 ),
							Excluded Rows( 0 )
 
						)}
					)
				)
			)
		)
	)
 
	;
); //end row loop
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 03:35:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-loop-variable-graph-reference-line/m-p/83017#M37383</guid>
      <dc:creator>tsolomon</dc:creator>
      <dc:date>2018-11-12T03:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: For loop variable graph reference line</title>
      <link>https://community.jmp.com/t5/Discussions/For-loop-variable-graph-reference-line/m-p/83023#M37387</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$sample_data/big class.jmp" );

output2 = V List Box(); // vlist box of all the results

For( w = 1, w &amp;lt;= N Rows( dt ), w++, // for every row in *some* table (the original question uses a different table for this)
    Stmt = dt:height[w]; // get some interesting value to subset with and make a subset...
    // (This simplied answer  is a little bit  non-sensical without another table involved--it will make duplicate graphs)
    dt &amp;lt;&amp;lt; Clear Row States; // I think this is what you wanted, rather than clearing the column selection
    dt &amp;lt;&amp;lt; select where( dt:height == Stmt );
    CofA_dt9a = dt &amp;lt;&amp;lt; Subset( Output Table( "TempTable" || Char( w ) ) ); // make a subset

    row1weight = CofA_dt9a:weight[1]; // use row 1 of the subset to get values that will
    row1age = CofA_dt9a:age[1]; // be visible on the X and Y axes

    output2 &amp;lt;&amp;lt; append( // collect all the results here
        V List Box( // a list of 1 box; bivariate attaches to this vlist rather than making a window
            (CofA_dt9a &amp;lt;&amp;lt; Bivariate( Y( :weight ), X( :age ),
                SendToReport( // the next line has a hyphen that appears to make stmt negative...
                    Dispatch({},"Bivariate Fit of weight By age",OutlineBox,{Set Title( "Parameter Value by shelf_life_start_date -" || Char( stmt ) )}),
                    Dispatch( {}, "2", ScaleBox, {Add Ref Line( row1weight, "Solid", "Red", "row 1 weight", 1 )} ),
                    Dispatch( {}, "1", ScaleBox, {Label Row( Label Orientation( "Angled" ) ), Add Ref Line( row1age, "Solid", "Red", "row 1 age" )} ), 
                    Dispatch({},"Bivar Plot",FrameBox,{Frame Size( 200, 100 )}
                    )
                )
            ))
        ) &amp;lt;&amp;lt; cloneBox // cloning the V List Box and the bivariate platform disconnects the clone from the data table
    );
    Close( CofA_dt9a, nosave ); // the subset is not needed after the clone
); //end row loop

Close( dt, nosave );

New Window( "output2", output2 );
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Nov 2018 16:25:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-loop-variable-graph-reference-line/m-p/83023#M37387</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2018-11-10T16:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: For loop variable graph reference line</title>
      <link>https://community.jmp.com/t5/Discussions/For-loop-variable-graph-reference-line/m-p/83030#M37391</link>
      <description>Thank You! This helped me to solve both issues.</description>
      <pubDate>Sun, 11 Nov 2018 04:52:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-loop-variable-graph-reference-line/m-p/83030#M37391</guid>
      <dc:creator>tsolomon</dc:creator>
      <dc:date>2018-11-11T04:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: For loop variable graph reference line</title>
      <link>https://community.jmp.com/t5/Discussions/For-loop-variable-graph-reference-line/m-p/83036#M37397</link>
      <description>&lt;P&gt;Hi Craig, I found one unintended consequence of using the &amp;lt;&amp;lt; clonebox. in&lt;BR /&gt;my script. I am saving the output as an interactive html and for some&lt;BR /&gt;reason when the html is saved, the markers just show up as black dots&lt;BR /&gt;versus the standard formatting I am using in the legend. Somehow, the&lt;BR /&gt;legend is being deactivated. The interesting thing is in the open window,&lt;BR /&gt;the graphs are display correctly, it is just when I open the html file that&lt;BR /&gt;I observe the markers do not match the legend. If I save the output as&lt;BR /&gt;journal, the legend also works. I have narrowed it down to using the&lt;BR /&gt;clonebox (when I comment it out, the html is saved correctly) but havent&lt;BR /&gt;been able to find much documentation on how to format the clone box.&lt;BR /&gt;&lt;BR /&gt;The script with your suggestions is below incorporated is below.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( w = 1, w &amp;lt;= row_count, w++,
	Stmt = CofA_dt10:Parameter[w];
	Stmt2 = CofA_dt10:Material Parameter[w];
	CofA_dt9 &amp;lt;&amp;lt; Clear Row States;
	CofA_dt9 &amp;lt;&amp;lt; select where( :Parameter == Eval( Parse( Eval Insert( "Stmt" ) ) ) );
	CofA_dt9a = CofA_dt9 &amp;lt;&amp;lt; Subset( Output Table( "TempTable" || Char( w ) ), );

	Mean_4sigmaUCL = CofA_dt9a:UCL_Line[1];
	Mean_4sigmaLCL = CofA_dt9a:LCL_Line[1];
	Mean_data = CofA_dt9a:Name( "Mean(real_value)" )[1];
	output2 &amp;lt;&amp;lt; append(
		V List Box(
			(CofA_dt9a &amp;lt;&amp;lt; Bivariate(
				Y( :test_value ),
				X( :received_date ),
				SendToReport(
					Dispatch(
						{},
						"Bivariate Fit of test_value By received_date",
						OutlineBox,
						{Set Title( Eval( Parse( Eval Insert( "Stmt" ) ) ) )}
					),
					Dispatch(
						{},
						"2",
						ScaleBox,
						{Add Ref Line( Mean_4sigmaUCL, "Solid", "Red", "Mean_4s_UCL", 1 ),
						Add Ref Line( Mean_4sigmaLCL, "Solid", "Red", "Mean_4s_LCL" ),
						Add Ref Line( Mean_data, "Solid", "Green", "Mean" )}
					),
					Dispatch( {}, "1", ScaleBox, {Label Row( Label Orientation( "Angled" ) )} ),
					Dispatch(
						{},
						"test_value",
						TextEditBox,
						{Set Text( Eval( Parse( Eval Insert( "Stmt2" ) ) ) )}
					),
					Dispatch(
						{},
						"Bivar Plot",
						FrameBox,
						{Frame Size( 1018, 423 ), Row Legend(
							Flagging,
							Color( 1 ),
							Color Theme( "JMP Default" ),
							Marker( 1 ),
							Marker Theme( "Standard" ),
							Continuous Scale( 0 ),
							Reverse Scale( 1 ),
							Excluded Rows( 0 )
						)}
					)
				)
			))
		) &amp;lt;&amp;lt; cloneBox
	);
	Close( CofA_dt9a, nosave );
); //end row loop&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;This is the script to save the html file, it comes right after creating the&lt;BR /&gt;output window so I am at a loss as to why the clonebox would affect the&lt;BR /&gt;formatting?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;output = Tab Box( "EASY Summary", output1, "Trend Graphs", output2 );
output_window = New Window( "F68 CofA Flagging Summary", output );
output_window &amp;lt;&amp;lt; Save Interactive html(
	path || "FlagSummaryAll" || "
Sigma=" || Char( sigma ) || " Days=" || Char( Days ) || ".html"
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Nov 2018 03:33:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-loop-variable-graph-reference-line/m-p/83036#M37397</guid>
      <dc:creator>tsolomon</dc:creator>
      <dc:date>2018-11-12T03:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: For loop variable graph reference line</title>
      <link>https://community.jmp.com/t5/Discussions/For-loop-variable-graph-reference-line/m-p/83054#M37414</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2557"&gt;@John_Powell_JMP&lt;/a&gt;&amp;nbsp;for the HTML question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The clone box operation turns a live report into a static set of display boxes. I'm not sure how much interactivity you can expect (I think none.) You might be able to use &amp;lt;&amp;lt;saveHtml rather than &amp;lt;&amp;lt;saveInteractiveHtml and get the output you expect, or it may do exactly the same thing.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 13:22:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-loop-variable-graph-reference-line/m-p/83054#M37414</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2018-11-12T13:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: For loop variable graph reference line</title>
      <link>https://community.jmp.com/t5/Discussions/For-loop-variable-graph-reference-line/m-p/83061#M37419</link>
      <description>&lt;P&gt;Interactive HTML tries to maintain some interactivity when wrapped in a clonebox, but as Craige notes it ...&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;&lt;SPAN class="token comment"&gt;"disconnects the clone from the data table"&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When a Row Legend is used, the colors and marker shapes are stored in the table. When the connection to the table is broken using clonebox, I believe new marker attribute data structures are created allowing the desktop windows to retain marker attributes, but these data structures are not&amp;nbsp;exported to Interactive HTML.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree that SaveHTML&amp;nbsp;should&amp;nbsp;provide correct display in HTML, because images of the graphs (as they look on the desktop) will appear in the HTML.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With Graph Builder, marker colors and shapes are not stored in the table, so if you were able to build the same bivariate plots using&amp;nbsp;Graph Builder, you should be able to retain marker colors and shapes whether or not you wrap graphs in a clonebox. Using Graph Builder it may not be necessary to use a clonebox&amp;nbsp;at all.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;~John&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 14:25:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-loop-variable-graph-reference-line/m-p/83061#M37419</guid>
      <dc:creator>John_Powell_JMP</dc:creator>
      <dc:date>2018-11-14T14:25:44Z</dc:date>
    </item>
  </channel>
</rss>

