Choose Language Hide Translation Bar
Highlighted
nikles
Level V

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
Highlighted

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);
Learn it once, use it forever!

View solution in original post

2 REPLIES 2
Highlighted

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);
Learn it once, use it forever!

View solution in original post

Highlighted
nikles
Level V

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.  

Article Labels

    There are no labels assigned to this post.