列表中的評估列名稱你好,
我有一個包含數字行值的列表。 我想根據列表中的行值生成變異性圖。 我嘗試使用 Eval,但似乎沒有效果。 有人可以幫忙嗎?
這是我的代碼
Names Default To Here( 1 );
Clear Globals();
dt = Data Table( "Untitled 910" );
dt2 = Data Table( "Soft Bin Summary" );
dad = dt2<< get column names(strings);
r = dt << Get Rows Where( :Yield AlertType == "Wafer" );
bin = dt:Yield iBin[r];
Isocol = {};
For(i = 1, i <= N Items(bin), i++,
Insert Into(Isocol, Char(bin[i])));
aa_refs = Associative Array( dt:Yield iBin[r], dt:Yield fLimit[r] );
vc2 = dt2 << Variability Chart(
Y( Eval((Isocol)) ),
X( :WaferID ),
Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
Show Range Bars( 0 ),
Std Dev Chart( 0 ),
Points Jittered( 1 ),
);
For( i = 1, i <= N Items( Isocol ), i++,
If( Contains( aa_refs, Isocol[i] ),
Report( vc2[i] )[Framebox( 1 )] << DispatchSeg( CustomStreamSeg( 3 ), {Line Width( 2 )} );
Report( vc2[i] )[AxisBox( 1 )] << {Add Ref Line( aa_refs[Isocol[i]], "Solid", "Dark Green", "T", 2 )};
)
);腳本回复:列表中的評估列名稱你在 Isocol 中有一個“列”,它在 dt2 中找不到,“0”。
回复:列表中的評估列名稱我們可以忽略 0 值
回复:列表中的評估列名稱如果我從 Isocol 中刪除“0”,我確實可以很好地創建變異性圖表?
對於要比較字符和數值的行,Contains 不會找到任何匹配項。 同樣出於某種原因,您必須將 aa_ref 值除以 100
Names Default To Here(1);
dt = Data Table("Untitled 910");
dt2 = Data Table("Soft Bin Summary");
dad = dt2 << get column names(strings);
r = dt << Get Rows Where(:Yield AlertType == "Wafer");
bin = dt:Yield iBin[r];
Isocol = {};
// 0 is last value, so we won't include it
For(i = 1, i < N Items(bin), i++,
Insert Into(Isocol, Char(bin[i]))
);
aa_refs = Associative Array(bin, dt:Yield fLimit[r]);
vc2 = dt2 << Variability Chart(
Y(Eval((Isocol))),
X(:WaferID),
Analysis Type("Choose best analysis (EMS REML Bayesian)"),
Show Range Bars(0),
Std Dev Chart(0),
Points Jittered(1),
);
For(i = 1, i < N Items(Isocol), i++,
If(Contains(aa_refs, Num(Isocol[i])),
Report(vc2[i])[Framebox(1)] << DispatchSeg(CustomStreamSeg(3), {Line Width(2)});
Report(vc2[i])[AxisBox(1)] << {Add Ref Line(aa_refs[Num(Isocol[i])] / 100, "Solid", "Dark Green", "T", 2)};
)
);回复:列表中的評估列名稱謝謝@jthi . 我仍在嘗試修復參考線