將圖表附加到新視窗時缺少本地過濾器我嘗試將帶有本地過濾器的圖表附加到新窗口
該圖顯示在「新視窗」標籤中,但缺少本機篩選器。
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 ) );