JMP 16.2: Multiple Fit Y By X CDF Plots Saved Into ppt?I have scripted a Data Filter to a Data Table then using the Fit Y By X portal I am generating a cdf plot. Next I save that cdf to a ppt using the following code,
Show Properties( cdf1 );
cdf1 << Save Presentation( "C:/Documents/CDF1.pptx" );
Next I repeat the process and generate cdf2 then save to a ppt, generate cdf3 then save to a ppt, etc..... Winding up with several individual ppts. Is there a way to combine all of the cdfs into one ppt? Thank you.
Content OrganizationRe: JMP 16.2: Multiple Fit Y By X CDF Plots Saved Into ppt?@WoHNY
Here are the steps:
1. You open a Data Table
2. Name the bivariate chart biv.
I get a reference to the biv platform, but as I use by, this is a list, and not a single instance
3. Send the chart to a report named as rbiv.
I get a reference to the report layer, again here the result is a list
4. rbiv [1] is the "parent' pptx?? How are the subsequent charts added to the parent? That part I am not following.
I take the first element of the reports by indexing [1] and ask for the reference of the parent window (parenthesis are important). To the result/parent window the message is sent to save it as a ppt. Then JMP does the work, putting each graph into a new slide of one ppt.
Re: JMP 16.2: Multiple Fit Y By X CDF Plots Saved Into ppt?Georg:
Thank you for the script. I need to parse through this to understand more.
1. You open a Data Table
2. Name the bivariate chart biv.
3. Send the chart to a report named as rbiv.
4. rbiv [1] is the "parent' pptx?? How are the subsequent charts added to the parent? That part I am not following.
Thank you.
Re: JMP 16.2: Multiple Fit Y By X CDF Plots Saved Into ppt?jthi:
The Append works for my situation. Thank you.
Re: JMP 16.2: Multiple Fit Y By X CDF Plots Saved Into ppt?Why not let JMP doing the loop for you,
in the following I slightly tuned an example from scripting index,
introducing a "by" to the analysis, and then saved the whole window in ppt.
Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ) , by(:age));
rbiv = biv << report;
(rbiv [1] << parent)<< Save Presentation( "$TEMP/jmp_example.pptx" );
Open( "$TEMP/jmp_example.pptx" );
Re: JMP 16.2: Multiple Fit Y By X CDF Plots Saved Into ppt?Save Presentation should give an option to use different insertion methods of new slides Save Presentation (jmp.com) , so you could try using those. Below is example with Append
cdf2 << Save Presentation( "C:/Documents/CDF1.pptx", Append);