How can I output the graph in the same window as the button?When I write the command to output the graph in the button, it actually outputs in a new window. What should I do to output the graph in the same window (as shown in the figure below)?
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 ) ); )
)
);
Data Exploration and VisualizationRe: How can I output the graph in the same window as the button?You could collect them into some display element
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()
);Re: How can I output the graph in the same window as the button?The objects created when the button box is clicked need to be appended back to the window.
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 );
)
);