将图表附加到新窗口时缺少本地过滤器我尝试将带有本地过滤器的图表附加到新窗口
该图显示在“新窗口”选项卡中,但缺少本地过滤器。
Yld2 =
Graph Builder(
Size( 604, 690),
Show Control Panel( 0 ),
Variables( X( :Index ), Y( :Yield ), Page( :Process ) ),
Elements(
Points( X, Y, Legend( 4 ) ),
Line( X, Y, Legend( 5 ) ),
Caption Box( X, Y, Legend( 6 ), Per Factor( 1 ) )
),
Local Data Filter(
Add Filter( columns( :Process ), Where( :Process == {"Auto_Align", "Final_Electrical_Test"} ),Display( :Process, N Items( 10 ) ) )
)
);
plot = new window("Plot", tb = tab box());
tb << append ("Yield Trend By Process",vlb = vlistbox());
vlb << append(report(Yld2));数据探索和可视化回复:将图形附加到新窗口时缺少本地过滤器您还可以分别生成数据过滤器和图形构建器并将两者附加到窗口。
重要提示:不要忘记数据过滤器上下文框,它将创建数据过滤器和绘图之间的链接。
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = H List Box(
dt << Graph Builder(
Size( 200, 200 ),
Show Control Panel( 0 ),
Variables( X( :sex ), Y( :age ) ),
Elements( Points( X, Y, Legend( 4 ) ) )
)
);
ldf = H list Box(dt << Data Filter( Local, Add Filter( columns( :sex ) ) ));
plot = New Window( "Plot", Data Filter Context Box( tb = Tab Box() ) );
tb << append(
"age by sex",
Data Filter Context Box(
hlb = H List Box()
)
);
hlb << append( ldf );
hlb << append( gb );
最简单的方法:
创建带有绘图和数据过滤器的窗口 - 不要附加它们:)
回复:将图表附加到新窗口时缺少本地过滤器用显示框封装脆弱的 GraphBuilder 是个好主意。
我刚刚在脚本索引中发现平台是专门为此应用程序发明的:

我不知道平台与列表框或其他显示框相比是否有优势......
回复:将图形附加到新窗口时缺少本地过滤器当我看到这个想法时,我想:哇,太棒了,看起来像是使用分割图+附加图例(/数据过滤器)的想法的解决方案
图形生成器 - 在新窗口中打开图例(或在它自己的 ScrollBox 中)
但似乎通过获取报告的部分内容,对象失去了交互性:(
回复:将图形附加到新窗口时缺少本地过滤器如果您以稍微不同的方式构建报告,它应该可以工作。这是一种选择
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
vlb = V List Box(gb = dt << Graph Builder(
Size(525, 454),
Show Control Panel(0),
Variables(X(:weight), Y(:height)),
Elements(Points(X, Y, Legend(7)), Smoother(X, Y, Legend(8))),
Local Data Filter(Add Filter(columns(:age), Display(:age, N Items(6))))
));
plot = New Window("Plot", tb = Tab Box());
tb << append("Yield Trend By Process", plot_collector = V List Box());
plot_collector << append(vlb);回复:将图形附加到新窗口时缺少本地过滤器本地数据过滤器独立于图形生成器报告,因此必须单独添加。
通过转到图形生成器对象的父对象,然后引用本地数据过滤器的大纲框来引用本地数据过滤器的路径。
Yld2 = Graph Builder(
Size( 604, 690 ),
Show Control Panel( 0 ),
Variables( X( :Index ), Y( :YieProcess ), Page( :sex ) ),
Elements(
Points( X, Y, Legend( 4 ) ),
Line( X, Y, Legend( 5 ) ),
Caption Box( X, Y, Legend( 6 ), Per Factor( 1 ) )
),
Local Data Filter(
Add Filter( columns( :Process ), Where( :Process == "Auto_Align", "Final_Electrical_Test" ), Display( <SPAN class="lia-emoticons-autosuggestions"><SPAN class="lia-emoticons-search-term">:过程</SPAN></SPAN>, N Items( 10 ) ) )
)
);
plot = New Window( "Plot", tb = Tab Box() );
tb << append( "Yield Trend By Process", vlb = V List Box( hlb = H List Box() ) );
hlb << append( (Report( yld2 ) << parent)["Local Data Filter"] );
hlb << append( Report( Yld2 ) );