cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
Choose Language Hide Translation Bar
nikles
Level VI

How to Remove a Distribution Comparison?

Hi.  I'd like to know if there's a way to remove a "Compare Distributions" from an existing Distribution platform output using JSL.  For example:

 

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
obj = Distribution(
	Column(:Height, :Weight),
	Fit Distribution("All")
);

//These are things I've tried to remove the CmpDist for the Height Distribution, but did not work:
obj[1] << Remove Fit;						
obj[1] << (Fit Handle[1] << Remove Fit);	
obj[1] << Fit Distribution(0);

I want to completely remove the "Compare Distributions" outline box and its contents, along with the fit curve in the plot.  IOW, as if I'd never issued the Fit Distribution("All") command at all for that distribution.  IOOW, as if I went to the red down arrow for the Height distribution > Continuous Fit and unchecked "All".  

 

I have not yet attempted to delete the display boxes from the report window via brute force.  Hoping there's a simpler option?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to Remove a Distribution Comparison?

It is in the Help > Scripting Index and Help > Books > Scripting Guide.

 

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
obj = dt << Distribution(
	Column(:Height, :Weight),
	Fit Distribution("All")
);
obj << All(0);

View solution in original post

2 REPLIES 2

Re: How to Remove a Distribution Comparison?

It is in the Help > Scripting Index and Help > Books > Scripting Guide.

 

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
obj = dt << Distribution(
	Column(:Height, :Weight),
	Fit Distribution("All")
);
obj << All(0);
nikles
Level VI

Re: How to Remove a Distribution Comparison?

Thanks.  This works, but for the life of me, I could not find this in the Scripting Guide.