cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

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.

1 ACCEPTED SOLUTION

Accepted Solutions
WoHNY
Level IV

Re: JMP 16.2: Multiple Fit Y By X CDF Plots Saved Into ppt?

jthi:

 

The Append works for my situation. Thank you.

View solution in original post

5 REPLIES 5
jthi
Super User

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);

 

-Jarmo
Georg
Level VII

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" );
Georg
WoHNY
Level IV

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.

Georg
Level VII

Re: 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.

Georg
WoHNY
Level IV

Re: JMP 16.2: Multiple Fit Y By X CDF Plots Saved Into ppt?

jthi:

 

The Append works for my situation. Thank you.

Recommended Articles