cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
rmthomas
Level III

JMP Journal adding graphs JSL

Hello Everyone, 

 

I have one control chart graph with column switcher on the side to change the graph that I want to look at. I want to be able to use JSL to copy over the control chart to the journal and then use the column switcher to pick a different control chart graph and move that one over too. The point is to be able to move over any of the control chart graphs you want to look at into the journal quickly using a script so that I have a record of the control charts I have wanted to look at. I have tried to look around at different discussions and have not been able to find anything for this. Any help would be greatly appreciated.

 

Thank you for your time,

 

-Ryan

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: JMP Journal adding graphs JSL

If you are using the interactive Column Switcher feature, then why not use the interactive command to journal the current chart? Select Edit > Journal or press Control-J on Windows or Command-J on Mac.

View solution in original post

txnelson
Super User

Re: JMP Journal adding graphs JSL

Here is a sample script that adds a chart every time the column switcher is changed.

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Process Measurements.jmp" );
new window("The Journal", <<journal);
gb = Control Chart Builder(
	Size( 528, 458 ),
	Show Control Panel( 0 ),
	Show Limit Summaries( 0 ),
	Variables( Y( :Process 1 ) ),
	Chart( Position( 1 ) ),
	SendToReport(
		Dispatch(
			{"Process 1 Limit Summaries", "Process Capability Analysis", "Histogram"
			},
			"Process Capability Analysis Histogram",
			FrameBox,
			{Frame Size( 320, 20 )}
		)
	)
);
columnSwitcher = gb <<
Column Switcher(
	:Process 1,
	{:Process 1, :Process 2, :Process 3, :Process 4,
	:Process 5, :Process 6, :Process 7}
);
pre = Function( {currentColumn, nextColumn, switcher},
	dummy=1;
);
post = Function(
	{previousColumn, currentColumn, switcher},
	current report()["Control Chart Builder"]<<journal;
);
columnSwitcher <<
Make Column Switch Handler( pre,post );
// The below line was added to ensure the first chart is automatically
// moved to the journal
current report()["Control Chart Builder"]<<journal;
Jim

View solution in original post

4 REPLIES 4

Re: JMP Journal adding graphs JSL

If you are using the interactive Column Switcher feature, then why not use the interactive command to journal the current chart? Select Edit > Journal or press Control-J on Windows or Command-J on Mac.

rmthomas
Level III

Re: JMP Journal adding graphs JSL

@Mark_Bailey . Thank you I completely forgot about this short cut! 

txnelson
Super User

Re: JMP Journal adding graphs JSL

Here is a sample script that adds a chart every time the column switcher is changed.

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Process Measurements.jmp" );
new window("The Journal", <<journal);
gb = Control Chart Builder(
	Size( 528, 458 ),
	Show Control Panel( 0 ),
	Show Limit Summaries( 0 ),
	Variables( Y( :Process 1 ) ),
	Chart( Position( 1 ) ),
	SendToReport(
		Dispatch(
			{"Process 1 Limit Summaries", "Process Capability Analysis", "Histogram"
			},
			"Process Capability Analysis Histogram",
			FrameBox,
			{Frame Size( 320, 20 )}
		)
	)
);
columnSwitcher = gb <<
Column Switcher(
	:Process 1,
	{:Process 1, :Process 2, :Process 3, :Process 4,
	:Process 5, :Process 6, :Process 7}
);
pre = Function( {currentColumn, nextColumn, switcher},
	dummy=1;
);
post = Function(
	{previousColumn, currentColumn, switcher},
	current report()["Control Chart Builder"]<<journal;
);
columnSwitcher <<
Make Column Switch Handler( pre,post );
// The below line was added to ensure the first chart is automatically
// moved to the journal
current report()["Control Chart Builder"]<<journal;
Jim
rmthomas
Level III

Re: JMP Journal adding graphs JSL

@txnelson . Thank you for your help! This will work great.