I recently updated to jmp 14.1 (my work will only allowed tested updates so still waiting on 14.2). I have a script where I create a legend window, journal it, and then close it. This used to work fine in jmp 13 but now it does not close the window. Am I doing something wrong or is this a bug? Ignore the coloring portions, I have some things set up for consistent coloring.
myWin = Outline Box( "Legend",
H List Box(
myPlot = dt0 << Color or Mark By Column(
Eval( myColor ),
Color Theme( "POR Black" ),
Marker Theme( "standard" ),
Continuous Scale( 0 ),
Make Window With Legend( 1 )
)
)
);
myWin << Journal;
myWin << Close Window();
It appears to be a change.....and you may want to report it as a bug.....but here is a work around
names default to here(1);
dt0=open("$SAMPLE_DATA/big class.jmp");
myColor="sex";
myWin = Outline Box( "Legend",
H List Box(
myPlot = dt0 << Color or Mark By Column(
Eval( myColor ),
Color Theme( "POR Black" ),
Marker Theme( "standard" ),
Continuous Scale( 0 ),
Make Window With Legend( 1 )
)
)
);
myWin << Journal;
window("Legend") << Close Window();
It appears to be a change.....and you may want to report it as a bug.....but here is a work around
names default to here(1);
dt0=open("$SAMPLE_DATA/big class.jmp");
myColor="sex";
myWin = Outline Box( "Legend",
H List Box(
myPlot = dt0 << Color or Mark By Column(
Eval( myColor ),
Color Theme( "POR Black" ),
Marker Theme( "standard" ),
Continuous Scale( 0 ),
Make Window With Legend( 1 )
)
)
);
myWin << Journal;
window("Legend") << Close Window();
I don't believe there is a change in JMP14. The option Make Window with Legend(1) is creating a window, but it is not myWin, it is an independent window called Legend. Below is a modification of Jim's script to demonstrate this subtle issue. Change the OutlineBox name to My Legend. The New Window () command s not needed, it is for demonstration. Bottom line is Make Window with Legend() creates an independent window, and it is unneccesary.
names default to here(1);
dt0=open("$SAMPLE_DATA/big class.jmp");
myColor="sex";
myWin=0;
myWin = Outline Box( " My Legend",
H List Box(
myPlot = dt0 << Color or Mark By Column(
Eval( myColor ),
Color Theme( "POR Black" ),
Marker Theme( "standard" ),
Continuous Scale( 0 ),
//Make Window With Legend( 1 )
)
)
);
myWin << Journal;
wait(0);
new window("show it", myWin);
wait(2);
myWin << close window();