你好社區,
在此之前,我創建了一個單選框和 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>這對我來說是工作,即使加載有時可能會滯後。 不過沒關係..
無論如何,非常感謝你:)