BookmarkSubscribeSubscribe to RSS Feed

How to Close Bivariate Plots with JSL

terapin

Community Trekker

Joined:

Jun 23, 2011

I have some JSL code that creates a Bivariate plot called bv1 using data from dt1 but I can't figure out how to close this plot using JSL code. Interestingly, while hovering over dt1 shows the name of this data table, hovering over bv1 shows an empty list.

The scripting guide lists the syntax for closing data tables but it doesn't apply to graphical elements. Does anyone have any suggestions on how to do this?


bv1 = dt1 << Bivariate(
Y( :Name( " Variable Y" ) ),
X( :Name( " Variable X " ) ),
Fit Line( {Line Color( {213, 71, 86} )} )
);

1 ACCEPTED SOLUTION

Accepted Solutions
mpb

Super User

Joined:

Jun 23, 2011

Solution
Add these lines to the end of your sample script:

wait(2); //for demonstration;
rbv1 = bv1 << report;
rbv1 << close window;
1 REPLY
mpb

Super User

Joined:

Jun 23, 2011

Solution
Add these lines to the end of your sample script:

wait(2); //for demonstration;
rbv1 = bv1 << report;
rbv1 << close window;