你好,
我已經能夠根據“標誌”列編寫腳本來編輯圖例。 當我在 GraphBuilder 中重新創建相同的繪圖時,我得到的顏色更深,但當我運行腳本時,它給我的顏色比正常情況下褪色。 為什麼是這樣? 我知道這與選擇的行有關,而 GraphBuilder 只是突出顯示這些行或單元格。 我嘗試過合併
dt << Clear Column Selection();
dt << Clear Row Selection();
但它不起作用。 原來的劇情

和褪色的情節

dlg = Column Dialog(
yList = Col List( "Ys",
Min Col(1)
),
xList = Col List( "Xs",
Min Col(1),
Max Col(1)
),
byList = Col List( "Color/Mark By",
Max Col( 1 ) )
);
color_cols = dlg["byList"];
If( Is Missing( color_cols ) != {},
dt << Color or Mark by Column( color_cols[1], Marker Theme( "solid" ), Color Theme( "JMP Dark" ) );
for each row(
If(As Column( dt, color_cols[1] ) == "", As Column( dt, color_cols[1] )="!!");
);
dt << select where(As Column( dt, color_cols[1] ) == "!!" ) << Markers(0);
dt << select where(As Column( dt, color_cols[1] ) == "!!") << Colors(0);
);
dt << Clear Column Selection();
dt << Clear Row Selection();
meas_cols = dt << Get Column Names("String");
If(dlg["button"] == 1,
// Get the selected X and Y columns
x_col = dlg["xList"];
y_cols = dlg["yList"];
nw = New Window( "graphs", <<JOURNAL></JOURNAL>標誌列存儲在 color_cols[1] 中,它是少數單元格的區域列的完整形式,其他地方為空。