如何在與按鈕相同的視窗中輸出圖形?當我在按鈕中編寫輸出圖形的命令時,它實際上在新視窗中輸出。如何在同一個視窗中輸出圖形(如下圖)?
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
nw2 = New Window( "New window",
outputG = Button Box( "Output Graph",
Outline Box( "Graph Output",
Bivariate( y( :weight ), x( :height ) ); )
)
);
數據探索和視覺化回覆:如何在與按鈕相同的視窗中輸出圖形?您可以將它們收集到一些顯示元素中
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
nw2 = New Window("New window",
outputG = Button Box("Output Graph",
vlb << Append(Outline Box("Graph Output", Bivariate(y(:weight), x(:height))))
),
vlb = V List Box()
);回覆:如何在與按鈕相同的視窗中輸出圖形?單擊按鈕框時建立的物件需要附加回視窗。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
nw2 = New Window( "New window",
outputG = Button Box( "Output Graph",
ob = Outline Box( "Graph Output",
Bivariate( y( :weight ), x( :height ) )
);
nw2 << append( ob );
)
);