在圖形生成器之間共用本機資料過濾器以實現同步資料顯示我想在兩個圖形生成器之間共享相同的本地數據過濾器。例如,當選擇F時,兩個圖形產生器都應該只顯示與F相關的資料;並且,當選擇 M 時,兩個圖形產生器都應僅顯示與 M 相關的資料。
我怎樣才能實現這個目標?
New Window( "Weight VS Height",
outlineBoxA = Outline Box( "Weight VS Height",
Graph Builder(
Size( 528, 456 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ),
Elements( Points( X, Y, Legend( 7 ) ) ),
Local Data Filter( Add Filter( columns( :sex ), Where( :sex == "M" ) ) )
);
Graph Builder(
Size( 534, 450 ),
Show Control Panel( 0 ),
Variables( X( :age ), Y( :weight ) ),
Elements( Points( X, Y, Legend( 7 ) ) )
);
)
);
自動化和腳本編寫回覆:在圖形產生器之間共用本機資料過濾器以實現同步資料顯示您可以使用資料過濾器上下文框
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
nw = New Window("Weight VS Height",
Data Filter Context Box(
outlineBoxA = Outline Box("Weight VS Height",
H List Box(
Data Filter Source Box(
dt << Data Filter(
Local,
Add Filter(columns(:sex), Where(:sex == "M"))
)
),
V List Box(
dt << Graph Builder(
Size(528, 456),
Show Control Panel(0),
Variables(X(:weight), Y(:height)),
Elements(Points(X, Y, Legend(7)))
),
dt << Graph Builder(
Size(534, 450),
Show Control Panel(0),
Variables(X(:age), Y(:weight)),
Elements(Points(X, Y, Legend(7)))
);
)
)
)
)
);
Write();
為新 Windows 建置展示盒 (jmp.com)