cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-108462%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3Ejsl%20close%20window%20schlie%C3%9Ft%20das%20Fenster%20in%20jmp14%20nicht%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-108462%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20habe%20k%C3%BCrzlich%20auf%20jmp%2014.1%20aktualisiert%20(meine%20Arbeit%20erlaubt%20nur%20getestete%20Updates%2C%20also%20warte%20ich%20immer%20noch%20auf%2014.2).%20Ich%20habe%20ein%20Skript%2C%20in%20dem%20ich%20ein%20Legendenfenster%20erstelle%2C%20es%20aufzeichne%20und%20es%20dann%20schlie%C3%9Fe.%20Fr%C3%BCher%20hat%20das%20in%20jmp%2013%20einwandfrei%20funktioniert%2C%20aber%20jetzt%20wird%20das%20Fenster%20nicht%20mehr%20geschlossen.%20Mache%20ich%20etwas%20falsch%20oder%20ist%20das%20ein%20Fehler%3F%20Ignorieren%20Sie%20die%20Farbanteile%2C%20ich%20habe%20einige%20Dinge%20f%C3%BCr%20eine%20gleichm%C3%A4%C3%9Fige%20Farbgebung%20eingerichtet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EmyWin%20%3D%20Outline%20Box(%20%22Legend%22%2C%0A%20%20H%20List%20Box(%0A%20%20%20myPlot%20%3D%20dt0%20%26lt%3B%26lt%3B%20Color%20or%20Mark%20By%20Column(%0A%20%20%20%20Eval(%20myColor%20)%2C%0A%20%20%20%20Color%20Theme(%20%22POR%20Black%22%20)%2C%0A%20%20%20%20Marker%20Theme(%20%22standard%22%20)%2C%0A%20%20%20%20Continuous%20Scale(%200%20)%2C%0A%20%20%20%20Make%20Window%20With%20Legend(%201%20)%0A%20%20)%0A%20)%0A)%3B%0AmyWin%20%26lt%3B%26lt%3B%20Journal%3B%0AmyWin%20%26lt%3B%26lt%3B%20Close%20Window()%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-108615%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20jsl%20close%20window%20schlie%C3%9Ft%20das%20Fenster%20in%20jmp14%20nicht%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-108615%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20glaube%20nicht%2C%20dass%20es%20in%20JMP14%20eine%20%C3%84nderung%20gibt.%20Die%20Option%3CSTRONG%3E%20Fenster%20mit%20Legende%20erstellen(1)%3C%2FSTRONG%3E%20erstellt%20ein%20Fenster%2C%20aber%20es%20ist%20nicht%20myWin%2C%20sondern%20ein%20unabh%C3%A4ngiges%20Fenster%20namens%20Legend.Nachfolgend%20finden%20Sie%20eine%20Modifikation%20von%20Jims%20Skript%2C%20um%20dieses%20subtile%20Problem%20zu%20veranschaulichen.%C3%84ndern%20Sie%20den%20Namen%20der%20OutlineBox%20in%20%E2%80%9EMy%20Legend%E2%80%9C.%20Der%20Befehl%20%E2%80%9ENew%20Window()%E2%80%9C%20wird%20nicht%20ben%C3%B6tigt%2C%20er%20dient%20der%20Demonstration.%20Die%20Quintessenz%20ist%2C%20dass%20%E2%80%9EMake%20Window%20with%20Legend()%E2%80%9C%20ein%20unabh%C3%A4ngiges%20Fenster%20erstellt%2C%20und%20das%20ist%20unn%C3%B6tig.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Enames%20default%20to%20here(1)%3B%0Adt0%3Dopen(%22%24SAMPLE_DATA%2Fbig%20class.jmp%22)%3B%0AmyColor%3D%22sex%22%3B%0A%0AmyWin%3D0%3B%0A%0AmyWin%20%3D%20Outline%20Box(%20%22%20My%20Legend%22%2C%0A%20%20H%20List%20Box(%0A%20%20%20myPlot%20%3D%20dt0%20%26lt%3B%26lt%3B%20Color%20or%20Mark%20By%20Column(%0A%20%20%20%20Eval(%20myColor%20)%2C%0A%20%20%20%20Color%20Theme(%20%22POR%20Black%22%20)%2C%0A%20%20%20%20Marker%20Theme(%20%22standard%22%20)%2C%0A%20%20%20%20Continuous%20Scale(%200%20)%2C%0A%20%20%20%20%2F%2FMake%20Window%20With%20Legend(%201%20)%0A%20%20)%0A%20)%0A)%3B%0AmyWin%20%26lt%3B%26lt%3B%20Journal%3B%0Await(0)%3B%0A%0A%0A%0Anew%20window(%22show%20it%22%2C%20myWin)%3B%0Await(2)%3B%0A%0AmyWin%20%26lt%3B%26lt%3B%20close%20window()%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-108466%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20jsl%20close%20window%20schlie%C3%9Ft%20das%20Fenster%20in%20jmp14%20nicht%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-108466%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EVielen%20Dank%2C%20das%20funktioniert%20tats%C3%A4chlich.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-108464%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20jsl%20close%20window%20schlie%C3%9Ft%20das%20Fenster%20in%20jmp14%20nicht%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-108464%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEs%20scheint%20sich%20um%20eine%20%C3%84nderung%20zu%20handeln%20...%20und%20Sie%20m%C3%B6chten%20es%20vielleicht%20als%20Fehler%20melden%20...%20aber%20hier%20ist%20eine%20L%C3%B6sung%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Enames%20default%20to%20here(1)%3B%0Adt0%3Dopen(%22%24SAMPLE_DATA%2Fbig%20class.jmp%22)%3B%0AmyColor%3D%22sex%22%3B%0A%0A%0AmyWin%20%3D%20Outline%20Box(%20%22Legend%22%2C%0A%20%20H%20List%20Box(%0A%20%20%20myPlot%20%3D%20dt0%20%26lt%3B%26lt%3B%20Color%20or%20Mark%20By%20Column(%0A%20%20%20%20Eval(%20myColor%20)%2C%0A%20%20%20%20Color%20Theme(%20%22POR%20Black%22%20)%2C%0A%20%20%20%20Marker%20Theme(%20%22standard%22%20)%2C%0A%20%20%20%20Continuous%20Scale(%200%20)%2C%0A%20%20%20%20Make%20Window%20With%20Legend(%201%20)%0A%20%20)%0A%20)%0A)%3B%0AmyWin%20%26lt%3B%26lt%3B%20Journal%3B%0Awindow(%22Legend%22)%20%26lt%3B%26lt%3B%20Close%20Window()%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
hlazar
Level III

jsl close window does not close window in jmp14

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();
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: jsl close window does not close window in jmp14

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();
Jim

View solution in original post

3 REPLIES 3
txnelson
Super User

Re: jsl close window does not close window in jmp14

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();
Jim
hlazar
Level III

Re: jsl close window does not close window in jmp14

Thank you, this does indeed work.
gzmorgan0
Super User (Alumni)

Re: jsl close window does not close window in jmp14

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();

 

Recommended Articles