cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Sebastienlg
Level II

JMP Script: Save all the graph created from the column switcher by the user in the journal

Hi all,


I would like to know if it is possible to create a PDF from the graphics that are created by the user?

for example here is my code:

graph1 = dt << 
			Control Chart Builder(
				Size( 600, 500 ),
				Show Two Shewhart Charts( 0 ),
				Show Control Panel( 0 ),
				Sort by Row Order( 1 ),
				
				Show Excluded Region( 0 ),
				Variables(  Y( :"Y1") ,Subgroup( :batch ), Subgroup(:Date) ),
				Get Limits(dt3),
				Chart(
					Warnings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ) )
				),
				Local Data Filter(
					Add Filter(
						columns( :Version ), 
						Display( :Version, Size( 160, 75 ), List Display )
					),
					Mode( Select( 1), Show( 1), Include( 1 ) )
				),
				Column Switcher(
					:Name( "Y1" ),
					If( prod_n == 2, 
						{:Name( "Y1" ), :Name( "Y2" ), :Name( "Y3" )
						}
					)
				)
			)
graph1 << journal;
...


When the user creates a graph by clicking on the variable he wants to study from the column switcher, is it possible to save all the graphs created by the users in a PDF file with the journal?

 

Thank's in advance,

Sébastien

1 ACCEPTED SOLUTION

Accepted Solutions

Re: JMP Script: Save all the graph created from the column switcher by the user in the journal

Is something like this what you're looking for?

dt = open ("$SAMPLE_DATA/big class.jmp");
g = Graph Builder(
	Size( 525, 448 ),
	Show Control Panel( 0 ),
	Variables( X( :sex ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 5 ) ) )	
);
cs = (g << Column Switcher( :height, {:height, :weight} ));

ncols = n items (cs << get list);

for each ({i}, 1::ncols,
	g << Journal;
	cs << next;
);

View solution in original post

6 REPLIES 6
jthi
Super User

Re: JMP Script: Save all the graph created from the column switcher by the user in the journal

Do you want to have one journal for each of the columns user goes through or one journal for all of them?

-Jarmo
Sebastienlg
Level II

Re: JMP Script: Save all the graph created from the column switcher by the user in the journal

one journal for all of them

Sebastienlg
Level II

Re: JMP Script: Save all the graph created from the column switcher by the user in the journal

Hi jthi,

Do you have any suggestion that could help me with my request to make one journal for all of them ?

Thank's a lot for your answer,

Sebastien

jthi
Super User

Re: JMP Script: Save all the graph created from the column switcher by the user in the journal

It depends a lot on how the application will be used. Below are few questions:

  1. Based on what the users will click different columns?
  2. Can they click wrong columns and if they can how should those be handled?
  3. If they can't do you need user selections or can you just plot everything
-Jarmo

Re: JMP Script: Save all the graph created from the column switcher by the user in the journal

Is something like this what you're looking for?

dt = open ("$SAMPLE_DATA/big class.jmp");
g = Graph Builder(
	Size( 525, 448 ),
	Show Control Panel( 0 ),
	Variables( X( :sex ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 5 ) ) )	
);
cs = (g << Column Switcher( :height, {:height, :weight} ));

ncols = n items (cs << get list);

for each ({i}, 1::ncols,
	g << Journal;
	cs << next;
);
Sebastienlg
Level II

Re: JMP Script: Save all the graph created from the column switcher by the user in the journal

Great, this is exactly what I wanted !!!

Thank's a lot

Sebastien