你好,
我正在尝试创建一个直方图表,该表已应用本地数据过滤器以仅显示数据的子集。但是,当我查看表中的图片时,直方图显示所有可用数据的图。在下面的示例 JSL 中。 我使用了 Semiconductor Capability.jmp 示例数据文件。 例如,如果应用过滤器(对于lot_id =“lot09”),PNP5 色谱柱的所有测量值都应在规格限制内。(我不确定这是否相关,但我在 Windows 10 上使用 JMP 14.3.0)。
谢谢,
爱华
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:

你能展示你的结果吗?例如提供结果数据表?