阵容框 跳行我试图跳过阵容框中的一行图表。 例如,我想要第一行有 4 个图表,第二行有 3 个图表,等等,而不是 4x4 网格。有没有办法跳过一行或在排列框中添加换行符?
dt = current data table();
//where dtLookup is the data table containing a list of X and Y columns to plot from dt
nw = New Window( "Outputs", lub = Lineup Box( N Col( 4 ) ) );
For Each Row(dtLookup,
lub << append(
dt <<
Graph Builder(
Size( 500, 350 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables( X( As Column( dt, col_name_X ) ), Y( As Column( dt, col_name_Y) )),
Elements( Points( X, Y, Legend( 5 ) ) )
));
高级统计建模质量和工艺工程回复:阵容框跳行太感谢了。 我最终使用您的 vlb 添加根据列名称中解析的数据插入“分页符”!
再一次感谢你!
col_name_Y = Column(dtLookup, "Y")[i];
col_name_X = Column(dtLookup, "X")[i];
col_name_X_next = Column(dtLookup, "X")[i+1];<BR /> // col_name_X format = XXX YYY_ZZZ. The following word commands extracts YYY.
rail= Word(1,Word(2,col_name_X," "),"_");
rail_next = Word(1,Word(2,col_name_X_next," "),"_");
if(rail!=rail_next,page_break =1,page_break=0);
If(page_break == 0,
lub << append(
dt << Graph Builder(
Size(500, 350),
Show Control Panel(0),
Show Legend(0),
Variables( X( As Column( dt, col_name_X ) ), Y( As Column( dt, col_name_Y) )),
Elements(Points(X, Y, Legend(5)))
)
);
,
lub << append(
dt << Graph Builder(
Size(500, 350),
Show Control Panel(0),
Show Legend(0),
Variables( X( As Column( dt, col_name_X ) ), Y( As Column( dt, col_name_Y) )),
Elements(Points(X, Y, Legend(5)))
)
);
vlb << Append(lub = Lineup Box(N Col(lub_idx)));
)回复:阵容框跳行如果您知道如何构建具有特定列数的阵容框,您可以在附加新图表之前附加阵容框。
这很可能很容易被破坏,因为它希望您在 dtlookup 中恰好有 10 (1+2+3+4) 个值(此处使用列表而不是数据表)。
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");
dtlookup = {"NPN1", "PNP1","PNP2","NPN2","PNP3","IVP1","PNP4","NPN3","IVP2","NPN4"};
lub_idx = 4;
ongoing_gb = lub_idx;
nw = New Window("Outputs", vlb = V List Box(lub = Lineup Box(N Col(lub_idx))));
For(i = 1, i <= N items(dtlookup), i++,
If(ongoing_gb > 0,
lub << append(
dt << Graph Builder(
Size(200, 150),
Show Control Panel(0),
Show Legend(0),
Variables(X(As Column(dt, dtlookup[i])), Y(As Column(dt, "lot_id"))),
Elements(Points(X, Y, Legend(5)))
)
);
ongoing_gb--;
,
lub_idx = lub_idx - 1;
ongoing_gb = lub_idx;
vlb << Append(lub = Lineup Box(N Col(lub_idx)));
)
);
或者您可以选择使用 V List Box() 和 H List Box() 并检查索引。
回复:阵容框跳行你好,
我不知道阵容框有“跳过”功能,但有一个解决方法,需要一些编程,涉及为要跳过的每个插槽插入间隔框(与绘图大小相同)。
然而,这有点棘手,因为您需要为第一行跳过 0 个插槽,为第二行跳过 1 个插槽,为第三行跳过 2 个插槽;您不需要跳过最后一行的任何插槽。
对不完整的答案表示歉意:我没有时间编写您的脚本,但您也许能够弄清楚。
最好的,
TS