Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
galactus3000
Level IV

jsl script to save nonpar density quantile on local data filtered bivariate ... please help

Running script where there's a local data filtered nonparametric density in Bivariate platform and want to save the nonparametric density quantiles but unable to.  The script when run saves density quantiles, but not for only the filtered rows like it does when I run in non-script mode.

 here is what I am trying

obj=Bivariate(
	Y( :mapx ),
	X( :mapy ),
	Automatic Recalc( 1 ),
	Nonpar Density( {Color Theme( "Spectral" )},{Save Density Quantile} ),
	Local Data Filter(
		Add Filter(
			columns( :Label ),
			Where(
				:Label == {"type1", "type3", "type7", "type20"
				}
			),
			Display( :Label, Size( 181, 102 ), List Display )
		)
	)
);

but again the nonpar density quantile is saved for all rows rather than just filtered rows.

Please help.

Thanks in advance

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: jsl script to save nonpar density quantile on local data filtered bivariate ... please help

Current Data Table() << Data Filter(
	Location( {88, 88} ),
	Mode( Show( 1 ), Include( 1 ) ),
	Add Filter(
		columns( :Label ),
		Where( :Label == {"type1", "type3", "type7", "type20"} ),
		Display( :Label, Size( 181, 102 ), List Display )
	)
);
obj=Bivariate(
	Y( :mapx ),
	X( :mapy ),
	Automatic Recalc( 1 ),
	Nonpar Density( {Color Theme( "Spectral" )},{Save Density Quantile} )
);
Jim

View solution in original post

4 REPLIES 4
Highlighted
txnelson
Super User

Re: jsl script to save nonpar density quantile on local data filtered bivariate ... please help

If you use a Global Data Filter, you will get what you want.

Jim
Highlighted
galactus3000
Level IV

Re: jsl script to save nonpar density quantile on local data filtered bivariate ... please help

how would that work in jsl script?

Highlighted
txnelson
Super User

Re: jsl script to save nonpar density quantile on local data filtered bivariate ... please help

Current Data Table() << Data Filter(
	Location( {88, 88} ),
	Mode( Show( 1 ), Include( 1 ) ),
	Add Filter(
		columns( :Label ),
		Where( :Label == {"type1", "type3", "type7", "type20"} ),
		Display( :Label, Size( 181, 102 ), List Display )
	)
);
obj=Bivariate(
	Y( :mapx ),
	X( :mapy ),
	Automatic Recalc( 1 ),
	Nonpar Density( {Color Theme( "Spectral" )},{Save Density Quantile} )
);
Jim

View solution in original post

Highlighted

Re: jsl script to save nonpar density quantile on local data filtered bivariate ... please help

Another solution would be to issue the Save command separately from the launch:

 

obj = Bivariate(...);
Wait(0);
obj<<Nonpar Density({Save Density Quantile});

The Wait() is sometimes necessary with filters to ensure that the filter activates before the next command proceeds.

Article Labels

    There are no labels assigned to this post.