如何編輯面板框組件(標籤)你好
在我編寫的腳本中,我使用了一個面板框,其中顯示了兩個 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),
);