Thanks,
I was able to figure out what to do. I guess I just needed a way to get bunch of border boxes at once.
Anyways, couple of questions - For me collapsing IfBoxes collapses pretty much everything - window is empty. This is because I have other IfBoxes on the plot.
If I only use
XPath("//BorderBox")
it will take care of the boxes in red frame:
Boxes in green frame that are controlling the splines below - those stay.
I can solve it by saying Report View ("Summary") when building the plot, so all in all it works, but I'm still wondering - how would I isolate those IfBoxes - Can I say something like
Xpath("//OutlineBox/IfBox")
(this one didn't work).
Here's full script:
/* Open a sample data table */
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
Fit Group(
biv = dt << Bivariate(
Y( {:weight, :weight} ),
X( :height ),
/*Report View ("Summary"),*/
Group By ("sex"),
Fit Spline( 0.1, Standardized),
SendToReport(
Dispatch(
{},
"Bivar Plot",
FrameBox,
{DispatchSeg( Line Seg( 2 ), {Line Color( {66, 112, 221} )} )}
)
)
),
<<{Arrange in Rows( 3 )}
);
For Each({rbiv, index}, biv << Report,
(
rbiv << XPath("//BorderBox"))[2]<<Visibility("Collapse");
/*rbiv << Xpath("//IfBox")<< Visibility("Collapse");*/
);
I can make it work by uncommenting "Report View", but I also would like to understand how to do that using XPath (commented line at the end results in empty window).