你好,
我正在嘗試創建一個直方圖表,該表已應用本地數據過濾器以僅顯示數據的子集。但是,當我查看表中的圖片時,直方圖顯示的是所有可用數據的圖。在下面的示例 JSL 中。 我使用了 Semiconductor Capability.jmp 樣本數據文件。 例如,如果正在應用過濾器(對於 lot_id = "lot09"),則 PNP5 列的所有測量值都應在規格限制內。(我不確定這是否相關,但我在 Windows 10 上使用 JMP 14.3.0)。
謝謝,
AW
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );
//************************************************************************************************************************************************************************************************************
// Set Graph Reference Limits
//***********************************************************************************************************************************************************************************************************
Wait( 0.5 );
Set_Graph_Lines = Manage Spec Limits( Y( dt << Get Column Group( "Processes" ) ) );
Set_Graph_Lines << Show Limits All( 1 );
Set_Graph_Lines << Save to Column Properties( 1 );
//************************************************************************************************************************************************************************************************************
// Generate Table of Histograms
//***********************************************************************************************************************************************************************************************************
HistPics = New Table( "Table of Histograms",
New Column( "Histograms", Expression, "None", Set Values( {} ),Set Display Width( 300 ) ),
New Column( "Parameter", Character, "Nominal", Set Values( {} ),Set Display Width( 200 ) ) );
// Generate List of Column Names as a list of Strings to Use as parameter column name in datatable cells
//----------------------------------------------------------------------------------------------------------
Cols_List_String = dt << Get Column Names( "String");
Cols_List_String_Cnt = N Items( Cols_List_String );
For( j = 1, j <= Cols_List_String_Cnt, j++,
Gen_Distribution = dt << Distribution(
Column( dt:j ),
Quantiles( 0 ),
Outlier Box Plot( 0 ),
PpK Capability Labeling( 0 ),
Capability Analysis (0),
Frequencies(0),
Summary Statistics(0),
Local Data Filter(
Grouped by AND( 1 ),
Add Filter(
columns( :lot_id ),
Where( :lot_id == "lot09" ),
Display( :lot_id, Size( 181, 136 ), List Display )))
);
pic = (Report( Gen_Distribution )) << getpicture; //Neither local data filter selection nor spec limit reference lines are being captured
Gen_Distribution << closewindow();
ParmName = Cols_List_String[j];
HistPics << addrows( 1 );
HistPics:Histograms[j] = pic;
HistPics:Parameter[j] = ParmName;
);
HistPics<<SET cell="" height=""></SET>嗯,當我運行你的腳本時,我在直方圖中的規格內得到了 PNP5:

你能展示你的結果嗎?例如提供結果數據表?