Choose Language Hide Translation Bar
Highlighted
avner8943
Level III

changing column switcher name

How do I change column switcher title that instead image.png

 

I will have 

image.png

I can do it in jmp but I want to do it in script.

 

Or perhaps adding some kind of text box that can explain columns mean

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: changing column switcher name

The option I demonstrated was introduced in JMP 15.  I assume you must have an older version.

In versions of JMP prior to JMP 15, you need to use the following code:

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
biv = dt << Bivariate(
	Y( :PNP1 ),
	X( :NPN1 ),
	Column Switcher(
		:PNP1,
		{:NPN2, :PNP3, :IVP1, :PNP4, :NPN3, :IVP2, :NPN4, :SIT1, :INM1, :INM2, :VPM1, :VPM2, :VPM3, :PMS1, :SNM1, :SPM1, :NPN5, :EP2, :ZD6, :PBA,
		:PLG, :CAP},
		Title( "Time_Cols" )
	)
);

(report(biv)<<topparent)[ColumnSwitcherContextOutlineBox(1)]<<set title("Time_Col");
Jim

View solution in original post

3 REPLIES 3
Highlighted
txnelson
Super User

Re: changing column switcher name

Here is one way to do it.

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

dt << Bivariate(
	Y( :PNP1 ),
	X( :NPN1 ),
	Column Switcher(
		:PNP1,
		{:NPN2, :PNP3, :IVP1, :PNP4, :NPN3, :IVP2, :NPN4, :SIT1, :INM1, :INM2, :VPM1, :VPM2, :VPM3, :PMS1,
		:SNM1, :SPM1, :NPN5, :EP2, :ZD6, :PBA, :PLG, :CAP},
		Title( "Time_Cols" )
	)
);

To get the JSL, I simply ran what I wanted interactively, and then went to the red triangle, and saved the script.  Above is what JMP produced.....

 

Jim
Highlighted
avner8943
Level III

Re: changing column switcher name

Thanks, but it is not working for me

image.png

Highlighted
txnelson
Super User

Re: changing column switcher name

The option I demonstrated was introduced in JMP 15.  I assume you must have an older version.

In versions of JMP prior to JMP 15, you need to use the following code:

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
biv = dt << Bivariate(
	Y( :PNP1 ),
	X( :NPN1 ),
	Column Switcher(
		:PNP1,
		{:NPN2, :PNP3, :IVP1, :PNP4, :NPN3, :IVP2, :NPN4, :SIT1, :INM1, :INM2, :VPM1, :VPM2, :VPM3, :PMS1, :SNM1, :SPM1, :NPN5, :EP2, :ZD6, :PBA,
		:PLG, :CAP},
		Title( "Time_Cols" )
	)
);

(report(biv)<<topparent)[ColumnSwitcherContextOutlineBox(1)]<<set title("Time_Col");
Jim

View solution in original post

Article Labels

    There are no labels assigned to this post.