列表中的评估列名称你好,
我有一个包含数字行值的列表。 我想根据列表中的行值生成变异性图。 我尝试使用 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 . 我仍在尝试修复参考线