使用 JSL 按頁日誌縮放 GB如果我只用頁面做圖形構建器,我可以用 JSL 做對數縮放而沒有任何問題。 但是當我逐頁添加圖形構建器時。日誌比例僅發生在第一頁。另一頁沒有對數刻度。 誰能建議如何完成它?
cht_NFC_RD_BE_FME_SB = dt_NFC_RD_BE_FME_SB << Graph Builder(
Size( 1058, 1464 ),
Show Control Panel( 0 ),
Variables(
X( :CYC ),
Y( :Name( "NFC_RD_BE_FME_SB(Cnt)" ) ),
Page( :Wafer )
),
Elements( Box Plot( X, Y, Legend( 4 ) ), Line( X, Y, Legend( 5 ) ) )
);
Report(cht_NFC_RD_BE_FME_SB)[Axisbox(2)] << {Scale("Log"), Min( 1 ), Max( 4096 ), Inc( 1 ), Minor Ticks(1), Show Major Grid(1)};
第 1 頁獲得對數刻度,但第 2 頁以後沒有獲得對數刻度。

腳本編寫回复:使用 JSL 按頁面日誌縮放 GB你只得到第一個圖的參考
Report(cht_NFC_RD_BE_FME_SB)[Axisbox(2)]
您可以獲取所有引用,然後遍歷它們,或者然後可能使用 Xpath(不知道如何在僅使用 DisplayBoxes 時在列表中獲取沒有它的所有軸引用)並同時設置它們。 像這樣的事情可以工作:
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Reliability/Fan.jmp");
gb = dt << Graph Builder(
Size(534, 956),
Show Control Panel(0),
Variables(X(:Time), Y(:Exponential), Page(:Censor)),
Elements(Points(X, Y, Legend(8)), Smoother(X, Y, Legend(9))),
SendToReport(Dispatch({}, "Exponential", ScaleBox, {Format("Best", 9)}))
);
rep = Report(gb) << XPath("//AxisBox");
rep = rep[2::N Items(rep)::2]; //get every other value
rep << {Scale("Log"), Minor Ticks(1), Show Major Grid(1)};理解 Xpath 和“矩陣運算”在這裡非常重要,我建議稍微嘗試一下以了解發生了什麼。