價值訂單
我想更改 X 分組的順序,我可以使用 GUI 中的值順序功能來實現,但我無法使用 JSL 實作。請問存取所有 X 分組參數並操作其順序的正確方法是什麼?
這些不同的方框分別代表什麼意思?例如:axis_boxes、scale_boxes、Frame_boxes 等?
自動化和腳本編寫回覆:價值訂單我嘗試了以下程式碼,但沒有成功。
Try(
axis_box = gb_report[AxisBox(1)];
axis_box << Set Property("Value Order", {"Continuity_VDD", "Continuity_GND"});
,
// If that doesn't work, use XPath
axis_boxes = gb_report << XPath("//AxisBox");
If(N Items(axis_boxes) > 0,
axis_boxes[1] << Set Property("Value Order", {"Continuity_VDD", "Continuity_GND"});
);
);
回覆:價值訂單值順序是列屬性,因此請將該訊息傳送到列,而不是座標軸。
回覆:價值訂單我也試過了,但是圖表上沒有任何變化。
Column(dt,"TestNameReference")<< Set Property("Value Order", {"Continuity_VDD", "Continuity_GND"});
dt<
<SAVE></SAVE>
回覆:價值訂單手動執行該操作,並從日誌中複製生成的程式碼。根據需要進行編輯。
dt:TestNameReference << Set Property(
"Value Order",
{Custom Order( {"Continuity_VDD", "Continuity_GND"} )}
);
回覆:價值訂單我注意到,即使我手動更改資料表中的值順序,然後再用我的 JSL 腳本繪製圖表,值順序也不會套用到圖表上。
只能在圖表產生後,直接在圖形產生器 GUI 中修改值順序。
回覆:價值訂單我無法重現您的問題。我已經設定了 `:TestNameReference` 的值順序,並且在建立圖表時它會自動正確排序。您能否分享一下您用於建立圖表的腳本?您使用的是哪個 JMP 版本?

回覆:價值訂單這是一個在繪製圖形後設定值順序的工作範例。

names default to here(1);
dt =
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
Variables( X( :age ), Y( :height ), Group X( :sex ), Color( :age ) ),
Elements( Box Plot( X, Y, Legend( 5 ) ) )
);
dt:sex << set property("value order", {Custom Order( {"M", "F"} )});
回覆:價值訂單我嘗試了完全相同的命令,但最終的圖表沒有任何變化,以下是我的程式碼。
Simple_Plot = Function({dt, file_name},
plot_filename = Munger(file_name, Length(file_name) - 3,4, "_plot.png") ;
plot_path = ::plots_output_path || plot_filename;
plot_title = Munger(file_name, Length(file_name)-3,4,"");
gb_obj = dt << Graph Builder(
Title(plot_title),
Show Window(1),
Size(::SizeX, ::SizeY),
Show Control Panel(0),
Variables(
Y( :Data ),
Group X( :TestNameReference ),
Group X( :TestTemperature ),
Overlay(:WaferNumber)
),
Elements(
Box Plot( Y, Legend( 1 ) ), // Legend is optional but helpful
Caption Box(Y, Legend( 2 ), Summary Statistic( "Mean" ), Location( "Top" ) ),
Caption Box(Y, Legend( 3 ), Summary Statistic( "Std Dev" ), Location( "Bottom" ) )
)
);
gb_report = gb_obj << Report;
gb_report << Prepend(Outline Box(plot_title), Spacer Box(Size(::TitleSize1, ::TitleSize2)));
gb_obj << Bring Window To Front;
dt << Select All Rows;
//Throw();
gb_obj << Save Picture( plot_path, "png" );
Print(" Plot saved: " || plot_filename);
Close(gb_obj, no save);
);
If (Contains (file_name, "Continuity_Test" ),
Print("Generating plot for: " || file_name);
//Column(dt,"TestNameReference") << Set Property("Value Ordering", "Custom");
Column(dt,"TestNameReference")<< Set Property("Value Order", {Custome Order({"Continuity_VDD", "Continuity_GND"})});
dt<
<SAVE></SAVE>
回覆:價值訂單會不會只是這個拼字錯誤? {Custome Order(.... 應改為 {Custom Order(.... )
If (Contains (file_name, "Continuity_Test" ),
Print("Generating plot for: " || file_name);
//Column(dt,"TestNameReference") << Set Property("Value Ordering", "Custom");
Column(dt,"TestNameReference")<< Set Property("Value Order", {Custome Order({"Continuity_VDD", "Continuity_GND"})});
dt<
<SAVE></SAVE>
回覆:價值訂單dt:sex << set property("value order 在 ", {"M", "F"} );
這項工作可以作為明確拼寫自訂訂單的替代方案。
我不明白為什麼省略“ing”使得dt:sex << set property("value order", {"M", "F"} );會失敗,儘管 JMP 的文檔中是這樣規定的。