Use copy and paste frame contents
Open( "$ENGLISH_SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( height ), x( weight ) , Histogram Borders( 1 ));
cont=Graph Builder(
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ),
Elements(
Contour( X, Y, Legend( 4 ), Number of Levels( 0 ) ),
Points( X, Y, Legend( 5 ) )
)
);
rbiv = biv << report;
rcont=cont<<report;
rcont[framebox(1)]<< copy frame contents;
rbiv[framebox(3)]<<paste frame contents;;
cont<<close window;
You can do this interactively as well. Create the contour plot , then right click >Edit>Copy Frame Contents.
Then create the bivariate plot with histogram borders, right-click on that and Edit>Paste Frame Contents.
Beauty of this is the axes and frame sizes all adjust automatically,
Another approach isn't so sweet. The code below is incomplete because the axis on both plots should be equal to each other. Demonstates the principal though. (The Wait commands I found were needed to avoid crashing with an exception)
Open( "$ENGLISH_SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( height ), x( weight ) , Histogram Borders( 1 ));
cont=Graph Builder(
Size( 308, 270 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ),
Elements(
Contour( X, Y, Legend( 4 ), Number of Levels( 0 ) ),
Points( X, Y, Legend( 5 ) )
)
);
rbiv = biv << report;
rcont=cont<<report;
wait(.1);
rbiv[framebox(3)]<< sib append(rcont[framebox(1)]);
wait(.1);
rbiv[framebox(3)]<<delete;