cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
NGC_DAquila
Level II

How to export multiple graphs to Powerpoint

I am using the column switcher to change my graph but i want it to iterate through each of the "switchers" and print each onto a powerpoint slide. Is this possible in JMP18?

1 ACCEPTED SOLUTION

Accepted Solutions
mmarchandFSLR
Level VI

Re: How to export multiple graphs to Powerpoint

Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Hollywood Movies.jmp" );
gb = dt << Graph Builder(
	Size( 686, 572 ),
	Variables( X( :Genre ), Y( :Opening Wknd Gross ) ),
	Show Control Panel( 0 ),
	Elements(
		Bar(
			X,
			Y,
			Legend( 7 ),
			Bar Style( "Side by side" ),
			Summary Statistic( "Mean" )
		)
	)
);
cs = gb << Column Switcher(
		Opening Wknd Gross,
		{Rotten Tomatoes Score, Audience Score, Domestic Gross, Foreign Gross,
		World Gross, Production Budget, Profitability, Opening Wknd Gross},
		Close Outline( 1 )
	);
pptx_loc = "$DOCUMENTS/powerpoint_test.pptx";
gb << Save Presentation( pptx_loc );
For Each( {v, i}, Remove( cs << Get List, 1 ), cs << Next; gb << Save Presentation( pptx_loc, Append ) )

View solution in original post

4 REPLIES 4
mmarchandFSLR
Level VI

Re: How to export multiple graphs to Powerpoint

Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Hollywood Movies.jmp" );
gb = dt << Graph Builder(
	Size( 686, 572 ),
	Variables( X( :Genre ), Y( :Opening Wknd Gross ) ),
	Show Control Panel( 0 ),
	Elements(
		Bar(
			X,
			Y,
			Legend( 7 ),
			Bar Style( "Side by side" ),
			Summary Statistic( "Mean" )
		)
	)
);
cs = gb << Column Switcher(
		Opening Wknd Gross,
		{Rotten Tomatoes Score, Audience Score, Domestic Gross, Foreign Gross,
		World Gross, Production Budget, Profitability, Opening Wknd Gross},
		Close Outline( 1 )
	);
pptx_loc = "$DOCUMENTS/powerpoint_test.pptx";
gb << Save Presentation( pptx_loc );
For Each( {v, i}, Remove( cs << Get List, 1 ), cs << Next; gb << Save Presentation( pptx_loc, Append ) )
NGC_DAquila
Level II

Re: How to export multiple graphs to Powerpoint

Thank you Very Much this worked flawlessly i am new to the program but this i very easy to follow.

NGC_DAquila
Level II

Re: How to export multiple graphs to Powerpoint

Is there a way to use a standardize the powerpoint format that is used when creating this report? also removing the words "Graph Builder" from the bottom left? 

mmarchandFSLR
Level VI

Re: How to export multiple graphs to Powerpoint

Others may know the <<Save Presentation functionality better than I do.  It appears there's an option to specify a template.  When I want total control over the PowerPoint format, I use python.  One example in this post.

Recommended Articles