cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
jamesloh
Level I

JSL: Set title not working

Hi all,

 

i'm trying to script a trend chart and set a title, it's working on bivariate but not working on oneway. anyone can help to advice? thanks.

 

 

trend_R14toCu = V List Box (For( k = 1, k <= N Items( Conf ), k++, joindt << Oneway(
Y( :Name( "FVIM - R14 to Cu" ) ),
X( :Point_Wafer ),
Means and Std Dev( 0 ),
Mean Lines( 1 ),
Mean Error Bars( 1 ),
Std Dev Lines( 1 ),
Connect Means( 1 ),
Where( :Config == Conf[k] ),
SendToReport(
Dispatch(
{},
"Oneway Analysis of FVIM - R14 to Cu By Point_Wafer Config=A",
OutlineBox,
{Set Title( "I want to update title here" )}
),
Dispatch(
{},
"1",
ScaleBox,
{Max( 500 ), Min(400),
Add Ref Line(R14toCu_lsl,"Solid","Medium Dark Red","LSL = 461",2), 
Add Ref Line(R14toCu_usl, "Solid", "Medium Dark Red", "USL = 500", 2 )}
)
)
)
)
);
2 REPLIES 2
pmroz
Super User

Re: JSL: Set title not working

Change the title manually by double-clicking on it.  Then click the red triangle and select Script > Save to script window.  That will show you the proper syntax.  Here's an example with the Membrane dataset:

dt = open("$sample_data\Membrane.jmp");
dt << Oneway(
	Y( :Count1 ),
	X( :Brand ),
	Each Pair( 1 ),
	With Best( 1 ),
	Means( 1 ),
	Mean Diamonds( 1 ),
	Comparison Circles( 1 ),
	SendToReport(
		Dispatch(
			{},
			"Oneway Analysis of Count1 By Brand",
			OutlineBox,
			{Set Title( "Custom Title" )}
		),
		Dispatch(
			{"Means Comparisons", "Comparisons with the best using Hsu's MCB",
			"LSD Threshold Matrix"},
			"If a column has any negative values",
			TextBox,
			{Set Wrap( 361 )}
		)
	)
);
jamesloh
Level I

Re: JSL: Set title not working

thanks so much!