I have a script that generates a series of bivariate plots within a single window, using a LineUpBox to contain each plot. After the plots have been created, I want the option for the user to toggle on/off the points of the plot (I intend to add other options...this is serving only as one example). I envision a buttonbox or checkbox in the window the user can click on, and all the plots will reflect this action.
For a single plot, I would use the command:
bvp << Show Points(0/1);
where bvp is the reference to the bivariate plot. However, here I have multiple plots and cannot use a single reference for them all. I tried referencing to my LineUpBox that contains the plots instead:
For(plid = 1, plid <= nplots, plid++,
LUB_plots[plid] << Show Points(pts)
)
where LUB_plots is the reference to my lineupbox. This loop would be run each time the user checks the checkbox, for example. When I do this, I get the following errors:
The display box 'OutlineBox' does not recognize the message 'Show Points'; perhaps you mean one of these: <<Show Properties <<Show HelpKeys <<SetHorizontal <<Horizontal <<SetOpen <<GetHorizontal <<Close Where No Outlines <<Font <<Set Font <<Set Font Style <<Set Font Size <<Reshow <<Set Report Title <<Set Window Title <<Top Parent <<Show Tree Structure <<Restore Window Size <<Set Window Size <<Set Content Size <<Get Window Position <<Show Window <<Get Show Window <<Set Window Title <<Set Window Icon <<Set Print Headers <<Set Print Footers <<Scroll Window <<Set Width <<Set Height <<Horizontal Alignment.
and an instance of the following for each plot:
(The following message might not be an actual error; the preference 'Report Invalid Display Box Messages' is ON.) The display box 'OutlineBox' does not recognize the message 'Show Points'.
I checked the tree structure and confirm that yes, the top display box is indeed an outline box. So at least I know LineUpBox[plid] is aiming where I expected it to. The problem seems to be that my <<Show Points command sees the outline box it's pointed to, but fails to recognize that the outline box is actually part of a bivariate plot.
My question: How can I reference multiple bivariate plots? Alternatively, is there a better way to send commands to multiple bivariate plots after they've been created? Perhaps using some sort of Dispatch/SendtoReports command structure?
Not sure how to even search the community for this one. Any help is appreciated.