In the following graph, I want to be able to identify the page titles:
David_Burnham_0-1634208979448.png
i.e. "sex = F" and "sex = M".
Looking at the display tree it would appear that the titles are associated with a display box of type GraphBuilderGroupBox:
David_Burnham_1-1634209205820.png
I have the following script:
Open("$SAMPLE_DATA/Big Class.jmp");
gb = Graph Builder(
Size( 378, 714 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables( X( :height ), Y( :weight ), Page( :sex ) ),
Elements( Points( X, Y, Legend( 8 ) ), Smoother( X, Y, Legend( 9 ) ) )
);
rep = gb << report;
lst = rep << xpath("//GraphBuilderGroupBox");
for (i=1,i<=nitems(lst),i++,
title = lst[i] << get text;
)
Unfortunately this doesn't work (title = "" for both pages).
Does anyone have any suggestions?
Thanks,
David
-Dave