Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
mochar
Level III

Saving garph to powerpoint without local filter

I would like to save the graph area without the local filter, not the gray area to my powerpoint. So far, it saves 4 slides for 2 graphs. One slide has the local filter, and the other has the actual graph area. I would only like it to export the graph area since it's a high resolution.

 

This is the code I have so far:

graph1 is a variability graph, graph3 is a distribution graph. Also if possible, is it possible to save both graphs in one picture?

obj = New Window("TJ mUI " || Long Date(Today()), 
	V List Box( "vlb1", Panel Box( "Figure 1", graph1 ), Page Break Box(), Panel Box( "Figure 2", graph3 )));
	
obj << Set page setup(margins (1,1,1,1),
	scale(1),
	portrait(1),
	paper size("Letter"));
	
path = "Z:\SAF\JMP_Data\";
obj <<save picture(path || "testPNG.png", png);

obj << save presentation("Z:\SAF\JMP_Data\jmp_powerpoint_example.pptx");
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Saving garph to powerpoint without local filter

On the local data filter bit - you just need to change your local data filter to have a closed outline box. Here's an example of a graph builder snippet.  The important bit is annotated.



Graph Builder(
	Size( 532, 452 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ) ),
	Elements( Points( X, Y, Legend( 7 ) ), Smoother( X, Y, Legend( 8 ) ) ),
	Local Data Filter(
		Close Outline( 1 ),// This line closes the outline box
		Add Filter( columns( :sex ), Where( :sex == "F" ) )
	)
);



Anything that has a closed outline box will not show up in the powerpoint file.

Best,

M

View solution in original post

1 REPLY 1
Highlighted

Re: Saving garph to powerpoint without local filter

On the local data filter bit - you just need to change your local data filter to have a closed outline box. Here's an example of a graph builder snippet.  The important bit is annotated.



Graph Builder(
	Size( 532, 452 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ) ),
	Elements( Points( X, Y, Legend( 7 ) ), Smoother( X, Y, Legend( 8 ) ) ),
	Local Data Filter(
		Close Outline( 1 ),// This line closes the outline box
		Add Filter( columns( :sex ), Where( :sex == "F" ) )
	)
);



Anything that has a closed outline box will not show up in the powerpoint file.

Best,

M

View solution in original post

Article Labels

    There are no labels assigned to this post.