你好社区,
在此之前,我创建了一个单选框和 biv 图,但现在我一直在即兴创作剧本。 到目前为止这是我的问题
我已经创建了打开 3 个图表的脚本,带有自功能单选框
1)分配
2)用X拟合Y
3) 单选框

我的问题是:
1)每当我运行脚本时,行图例仅出现IL_ALL,即使单击单选框也无法更改。
2)我希望单选框参数更改分布上的行图例,但我不知道如何创建该脚本。
请帮我重写我的脚本。 我对 JSL 脚本还是一个新手。
//Get the current data Table
Names Default To Here( 1 );
dt = Current Data Table();
columnNames = dt << Get Column Names( "String" );
cl = New Window( "Column Selection",
// <<MODAL></MODAL>
下面我附上示例数据表:
//Get the current data Table
Names Default To Here( 1 );
dt = Current Data Table();
columnNames = dt << Get Column Names( "String" );
cl = New Window( "Column Selection",
H List Box(
Panel Box( "Make a selection",
allcolumn = Radio Box(
columnNames,
<<SET function=""></SET>这是最新的更新脚本,抱歉上一个是旧的:)
您可以使用 << Row Legend 向 FrameBox 添加新图例。 其中最困难的部分是删除旧的部分,下面是使用 XPath 的一项建议(可能不够强大)
//Get the current data Table
Names Default To Here(1);
dt = Current Data Table();
columnNames = dt << Get Column Names("String");
cl = New Window("Column Selection",
H List Box(
dist = dt << Distribution(
Continuous Distribution(Column(:IL_ALL_MAG_C1_S21), Normal Quantile Plot(1)),
SendToReport(
Dispatch({"IL_ALL_MAG_C1_S21"}, "", Picture Box(5), {Set Summary Behavior("Collapse")}),
Dispatch(
{"IL_ALL_MAG_C1_S21"},
"Distrib Quantile Plot",
FrameBox,
{Row Legend(
IL_ALL_MAG_C1_S21,
Color(1),
Color Theme("Spectral"),
Marker(0),
Marker Theme(""),
Continuous Scale(0),
Reverse Scale(0),
Excluded Rows(0)
)}
)
)
),
Panel Box("Make a selection",
allcolumn = Radio Box(columnNames, <<SET function=""></SET>这对我来说是工作,即使加载有时可能会滞后。 不过没关系..
无论如何,非常感谢你:)