For迴圈變數圖參考線我正在使用 for 循環生成一系列圖表(總共 10 個或更多圖表);但是,在第六張圖之後,參考線不會出現在圖中。 大約第 10 或 11 個圖表之後,參考線再次出現在圖表中。 我嘗試添加 wait(0);在多個地點但這並沒有幫助。 我嘗試過使用不同類型的圖表、標準雙變量與圖表生成器,我嘗試減小原始資料集的大小以查看是否是記憶體問題。 這些嘗試都沒有奏效,我正在尋找任何建議。 我想解決的第二個問題比第一個問題要少,它是如何關閉創建的臨時表而不關閉我在輸出視窗中創建和保存的圖形。 我嘗試過使用表(0)的鏈接,嘗試在生成輸出視窗後關閉表,但仍然不起作用。 非常感謝任何建議。
For( w = 1, w <= row_count, w++,
Stmt = CofA_dt10:Parameter[w];
CofA_dt9 << clear column selection;
CofA_dt9 << select where( :Parameter == Eval( Parse( Eval Insert( "Stmt" ) ) ) );
CofA_dt9a = CofA_dt9 << Subset( Output Table( "TempTable" || Char( w ) ), );
Mean_4sigmaUCL = CofA_dt9a:UCL_Line[w];
Mean_4sigmaLCL = CofA_dt9a:LCL_Line[w];
output2 << append(
V List Box(
CofA_dt9a <<
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
回覆:For循環變數圖參考線互動式 HTML 試圖在包裝在克隆盒中時保持一定的互動性,但正如 Craige 指出的那樣...
<SPAN class="token comment">"disconnects the clone from the data table"</SPAN>
使用行圖例時,顏色和標記形狀會儲存在表中。 當使用clonebox斷開與表格的連接時,我相信會建立新的標記屬性資料結構,允許桌面視窗保留標記屬性,但這些資料結構不會匯出到互動式HTML。
我同意 SaveHTML 應該在 HTML 中提供正確的顯示,因為圖形的圖像(就像它們在桌面上看到的那樣)將出現在 HTML 中。
使用圖形產生器,標記顏色和形狀不會儲存在表中,因此,如果您能夠使用圖形產生器建立相同的二元圖,則無論是否將圖形包裝在克隆框中,您都應該能夠保留標記顏色和形狀。 使用圖形產生器,可能根本不需要使用克隆盒。
〜約翰
回覆:For循環變數圖參考線@約翰_鮑威爾_JMP對於 HTML 問題。
克隆框操作將即時報告轉變為一組靜態顯示框。 我不確定您可以期望多少互動性(我認為沒有。)您也許可以使用 <<回覆:For循環變數圖參考線
嗨,克雷格,我發現使用 << 克隆盒會產生一個意想不到的後果。在
我的劇本。 我將輸出儲存為互動式 html,對於某些
原因是當儲存html時,標記只顯示為黑點
與我在圖例中使用的標準格式相比。 不知何故,
傳奇正在停用。 有趣的是在打開的窗戶裡,
圖表顯示正確,只是當我打開 html 檔案時
我觀察到標記與圖例不符。 如果我將輸出另存為
日記,傳奇也行。 我已經將範圍縮小到使用
clonebox(當我註解掉它時,html被正確保存)但還沒有
能夠找到很多有關如何格式化複製框的文件。
包含您的建議的腳本如下所示。
For( w = 1, w <= row_count, w++,
Stmt = CofA_dt10:Parameter[w];
Stmt2 = CofA_dt10:Material Parameter[w];
CofA_dt9 << Clear Row States;
CofA_dt9 << select where( :Parameter == Eval( Parse( Eval Insert( "Stmt" ) ) ) );
CofA_dt9a = CofA_dt9 << 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 << append(
V List Box(
(CofA_dt9a << 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 )
)}
)
)
))
) << cloneBox
);
Close( CofA_dt9a, nosave );
); //end row loop
這是保存 html 檔案的腳本,它在創建後立即出現
輸出窗口,所以我不知道為什麼克隆框會影響
格式化?
output = Tab Box( "EASY Summary", output1, "Trend Graphs", output2 );
output_window = New Window( "F68 CofA Flagging Summary", output );
output_window << Save Interactive html(
path || "FlagSummaryAll" || "
Sigma=" || Char( sigma ) || " Days=" || Char( Days ) || ".html"
);
回覆:For循環變數圖參考線謝謝你! 這幫助我解決了這兩個問題。Re: For迴圈變數圖參考線嘗試這樣的事情
dt = Open( "$sample_data/big class.jmp" );
output2 = V List Box(); // vlist box of all the results
For( w = 1, w <= 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 << Clear Row States; // I think this is what you wanted, rather than clearing the column selection
dt << select where( dt:height == Stmt );
CofA_dt9a = dt << 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 << 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 << 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 )}
)
)
))
) << 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 );