names Default To Here(1);
MyGraph = Function({yCol, xCol, gpx}, {default local},
vars = Eval Expr(Variables(
X(Expr(xCol)),
Group X(Expr(gpx))
));
pts = Expr(Box Plot(X));
For(j = 1, j <= Min(8, N Items(yCol)), j++,
Insert Into(vars, Eval Expr(Y(Expr(yCol[j]))));
);
gb = Expr(
Graph Builder(
Size(1255, 981),
Show Control Panel(0),
// Variables section will be inserted here
Elements(Box Plot(X, Y(1), Y(2), Y(3), Y(4), Y(5), Y(6), Y(7), Y(8), Legend(11))),
Local Data Filter(
Add Filter(
columns(:Test Stage, :Sublot, :Temperature, :Soft Bin),
Display(:Test Stage, N Items(4)),
Display(:Soft Bin, N Items(15))
)
)
)
);
Insert Into(gb, Name Expr(vars));
VListBox(gb)
);你好,
所附代码不会在第二个之后将 Y 数据列绘制为箱线图,并且所有箱线图不会共享相同的 Y 轴。我想确保所有列都绘制为箱线图并共享相同的 Y 轴。该代码在绘制点时运行良好,绘制箱线图与绘制点有什么不同吗?
谢谢。

单个子图和相同子图之间的区别解释如下:
如何让用户为图形生成器选择多列
窍门:
“ position(1) ” - 如果您不将其指定为 1,则每个新的 Y 变量位置都会自动增加,并且该列将添加一个新的子图。
