图形生成器上的 JSL 脚本根据晶圆数量绘制所有列您好,我正在尝试根据晶圆编号绘制数据(多个参数)。 我从社区找到了一个用于分布图的脚本。 因此,我对其进行了修改,将 Distribution 函数替换为 Graph Builder 函数。 然而,报告中只显示了一张图表,而不是所有图表。 我可以给你一些关于这个脚本的建议吗? 谢谢。
dt = Current Data Table ();
// Get all of the continuous data columns
colNames = dt << get column names( string, continuous );
// Create the JSL to create the script
theExpr = "Graph Builder(
Size( 1414, 795 ),
Show Control Panel( 0 ),
Variables( X( :WF_NUM ), Y( colNames[1] ), Color( :WF_NUM ) ),
Elements( Box Plot( X, Y, Legend( 7 ) ) )
);
)";
For( i = 1, i <= N Items( colNames ), i++,
theExpr = theExpr || ", Graph Builder(
Size( 1414, 795 ),
Show Control Panel( 0 ),
Variables( X( :WF_NUM ), Y(colNames[" || Char( i ) || "] ), Color( :WF_NUM ) ),
Elements( Box Plot( X, Y, Legend( 7 ) ) )
)");
// place the closing ")" to complete the command string
theExpr = theExpr || ");";
// Run the created JSL
Eval(Parse(theExpr));
感谢您的帮助。
多米尼克
大规模定制回复:图形生成器上的 JSL 脚本根据晶圆数量绘制所有列感谢您的帮助@tx尼尔森
感谢包含详细信息和代码的答案。
回复:图形生成器上的 JSL 脚本根据晶圆数量绘制所有列需要做的就是将图形生成放在 New Window() 函数中。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
// Change the name of the Wafer column to match the name used
// in the Graph Builder code
dt:wafer << set name( "WF_NUM" );
colNames = dt << get column names( string, continuous );
nw = New Window( "Graphs",
// Since there are 128 columns that could be plotted, the code has been
// modified to just produce 3 of the plots. The commented out code
// should replace the "i <= 3, i++," to plot all graphs
For( i = 1, i <= 3, i++, // N Items( colNames ), i++,
dt << Graph Builder(
Size( 1414, 795 ),
Show Control Panel( 0 ),
Variables(
X( :WF_NUM ),
Y( As Column( dt, colNames[i] ) ),
Color( :WF_NUM )
),
Elements( Box Plot( X, Y, Legend( 7 ) ) )
),
);
);回复:图形生成器上的 JSL 脚本根据晶圆数量绘制所有列你好@tx尼尔森,
感谢你的回复。
这些图表是用您修改后的代码绘制的。 关于修改后的代码的一个额外问题。 当我使用社区的参考代码来绘制分布图时,所有图表都被汇总到一个报告中,这样可以轻松导出到 powerpoint。 请问您简化为将图表汇总到单个报告中的代码需要哪些额外的行?
感谢您的帮助。
多米尼克
回复:图形生成器上的 JSL 脚本根据晶圆数量绘制所有列您提供的 JSL 可以被简化以生成您想要的图表。下面是对您的代码的修改
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
// Change the name of the Wafer column to match the name used
// in the Graph Builder code
dt:wafer << set name( "WF_NUM" );<BR />colNames = dt << get column names( string, continuous );
// Since there are 128 columns that could be plotted, the code has been
// modified to just produce 3 of the plots. The commented out code
// should replace the "i <= 3, i++," to plot all graphs
For( i = 1, i <= 3, i++, // N Items( colNames ), i++,
dt << Graph Builder(
Size( 1414, 795 ),
Show Control Panel( 0 ),
Variables(
X( :WF_NUM ),
Y( As Column( dt, colNames[i] ) ),
Color( :WF_NUM )
),
Elements( Box Plot( X, Y, Legend( 7 ) ) )
)
);
