如何编辑面板框组件(标签)你好
在我编写的脚本中,我使用了一个面板框,其中显示了两个 X 轴选项,这两个选项都是长字符串。
有没有更便捷的方法来更改显示名称?
以下代码是一个示例。
X_list 保存所有表示我希望在 X 轴上显示的列名的字符串。
然后,使用 panelbox 显示用户选项。
最后,绘制用户选择的双变量图。
我之前询问过关于 X 轴标签的问题,但最好也能得到一些关于 y 轴标签的技巧。
谢谢!
x_list = {"item1","item2"};
panelbox("x-axis", xRadio = radio box(x_list,updatePlot()));
Bivariate( Y( y_list[yRadio<
<GET></GET>
<LINGO-LABS id="lingo-labs-508007" slang="en-US" mode="UPDATE">
<LINGO-LABEL>高级统计建模</LINGO-LABEL>
<LINGO-LABEL>自动化和脚本编写</LINGO-LABEL>
<LINGO-LABEL>实验设计</LINGO-LABEL>
<LINGO-LABEL>大规模定制</LINGO-LABEL>
</LINGO-LABS>
回复:如何编辑面板框组件(标签)这是一种可以给您一些想法的方法。
dt = open("$sample_data\Car Physical Data.jmp");
x_list = dt << get column names(numeric, "string");
y_list = x_list;
updateplot = expr(
dt << Bivariate( Y( eval(ycol) ), X( eval(xcol) ));
);
nw = new window("Choose",
panelbox("x-axis",
xRadio = radio box(x_list,
xcol = x_list[xradio << get];
ycol = y_list[yradio << get];
updateplot;),
),
panelbox("y-axis",
yRadio = radio box(y_list,
xcol = x_list[xradio << get];
ycol = y_list[yradio << get];
updateplot;),
),
button box("OK", nw << close window),
);