<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to export JMP graph to PPT by JSL? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38515#M22547</link>
    <description>Hello, I am a new starter of JSL.&amp;nbsp;I have managed to build box plots with local data filter (filted by dimension type) by JSL. And I want to export the box plots one dimension type by one dimension type (from the top of data filter to the bottom) to a powerpoint file. But I can not find the functions in JMP help file to make it happen.

Appreciate if someone can grant help. I just want to know what functions are helpful on this, so I can look them up in JSL help file for the detail.

Here is what I am trying to do...
--&amp;gt; 1. Import excel data to JMP table. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;DONE&gt;
--&amp;gt; 2. Build box plots and local data filter(by dimension type, assuming I have 3 types A/B/C). &amp;nbsp; &amp;nbsp; &lt;DONE&gt;
--&amp;gt; 3. Show box plot of dimension A, save it and export to first PPT slide. &amp;nbsp; &amp;nbsp;
--&amp;gt; 4. Automatically jump to dimension B, show box plot, save and export to second PPT slide. &amp;nbsp;
--&amp;gt; 5. Same as last step to export box plot of dimension C to third PPT slide. 

Thanks for reading.&lt;/DONE&gt;&lt;/DONE&gt;</description>
    <pubDate>Fri, 09 Jun 2023 23:23:50 GMT</pubDate>
    <dc:creator>srwhill</dc:creator>
    <dc:date>2023-06-09T23:23:50Z</dc:date>
    <item>
      <title>How to export JMP graph to PPT by JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38515#M22547</link>
      <description>Hello, I am a new starter of JSL.&amp;nbsp;I have managed to build box plots with local data filter (filted by dimension type) by JSL. And I want to export the box plots one dimension type by one dimension type (from the top of data filter to the bottom) to a powerpoint file. But I can not find the functions in JMP help file to make it happen.

Appreciate if someone can grant help. I just want to know what functions are helpful on this, so I can look them up in JSL help file for the detail.

Here is what I am trying to do...
--&amp;gt; 1. Import excel data to JMP table. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;DONE&gt;
--&amp;gt; 2. Build box plots and local data filter(by dimension type, assuming I have 3 types A/B/C). &amp;nbsp; &amp;nbsp; &lt;DONE&gt;
--&amp;gt; 3. Show box plot of dimension A, save it and export to first PPT slide. &amp;nbsp; &amp;nbsp;
--&amp;gt; 4. Automatically jump to dimension B, show box plot, save and export to second PPT slide. &amp;nbsp;
--&amp;gt; 5. Same as last step to export box plot of dimension C to third PPT slide. 

Thanks for reading.&lt;/DONE&gt;&lt;/DONE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:23:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38515#M22547</guid>
      <dc:creator>srwhill</dc:creator>
      <dc:date>2023-06-09T23:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to export JMP graph to PPT by JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38519#M22549</link>
      <description>&lt;P&gt;Here is a sample script.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );
// The open function below, just need to point to the .xls or .xlsx file you want to open
dt=open("$SAMPLE_DATA\Big Class.jmp");

// Run the Distribution Platform
dis=dt&amp;lt;&amp;lt;Distribution( stack(1),Continuous Distribution( Column( :height ) ),
	// By using the "By" clause you avoid having to play around with
	// the local data filter
	By( :sex ) );
// Write the desired output to the ppt
report(dis[1])["height"]&amp;lt;&amp;lt;save presentation("$TEMP/jmp_example.pptx" );
report(dis[2])["height"]&amp;lt;&amp;lt;save presentation("$TEMP/jmp_example.pptx",append );

// OPen the powerpoint presentation
Open( "$TEMP/jmp_example.pptx" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:41:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38519#M22549</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-04-26T16:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to export JMP graph to PPT by JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38542#M22564</link>
      <description>Thanks for teaching me to use "save presentation()" to export charts to PPT. And this is real a good suggestion to use "By" instead of local data filter. However, in my case, I have to use graph builder to get box plots, which should not support "by" function. Moreover, actually I have dozens of dimensions, if I use "By" function, i may need to open dozens of charts at one time which looks not so good. Attached chart is basically what I want. &amp;nbsp;Looking forward to your response. Thanks.</description>
      <pubDate>Thu, 27 Apr 2017 02:54:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38542#M22564</guid>
      <dc:creator>srwhill</dc:creator>
      <dc:date>2017-04-27T02:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to export JMP graph to PPT by JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38543#M22565</link>
      <description>Graph Builder does support "by" but it is hidden from the drag and drop interface.  If one opens an empty Graph Builder window, their is a button called dialog.  This will open the dialog version of Graph Builder which contains a By element.</description>
      <pubDate>Thu, 27 Apr 2017 03:00:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38543#M22565</guid>
      <dc:creator>Chris_Kirchberg</dc:creator>
      <dc:date>2017-04-27T03:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to export JMP graph to PPT by JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38546#M22567</link>
      <description>&lt;P&gt;To keep charts from displaying while the code is running, but not having been written to the ppt, the "Invisible" option can be specified within the Platform. &amp;nbsp;I have also added a way to handle your filtering so you can see an easy way to deal with that&lt;/P&gt;
&lt;P&gt;I will also point out, that all of these options, etc. are documented and illustrated through examples&amp;nbsp;@:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
gb = dt &amp;lt;&amp;lt; Graph Builder(
	// The invisible option helps to keep the desktop clean
	invisible,
	Size( 517, 437 ),
	Show Control Panel( 0 ),
	Variables( X( :age ), Y( :height ) ),
	Elements( Box Plot( X, Y, Legend( 3 ) ) ), 
	// Here is an easy way to subset the data used in the grap
	Where( :sex == "F" )
);
New Window( "the graph", myvlb = V List Box() );
myvlb &amp;lt;&amp;lt; append( Report( gb ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Apr 2017 10:05:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38546#M22567</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-04-27T10:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to export JMP graph to PPT by JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38669#M22629</link>
      <description>Hi Jim, Thanks for your continuos coaching.&amp;nbsp; Understand we can subset data by "Where". But the data(dimension) i am trying to filtrate has 26 values (from A to Z), so i want to find a easier way instead of repeatedly using 26 times "Where". &amp;nbsp;What i can think of is local data filter.....I attached my filter fyr. All i want is to get a way to automatically scroll down the filter from A to Z, and output the corresponding 26x graphs to PPT. &amp;nbsp;Till now, i still did not find in scripting index.&amp;nbsp;</description>
      <pubDate>Mon, 01 May 2017 07:33:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38669#M22629</guid>
      <dc:creator>srwhill</dc:creator>
      <dc:date>2017-05-01T07:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to export JMP graph to PPT by JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38673#M22633</link>
      <description>&lt;P&gt;I fully understand what you are requesting. &amp;nbsp;However, sometimes features that are available in JMP that are targeted for interactive usage, do not translate very well to the scripting world. &amp;nbsp;The Local Data Filter is one of them. &amp;nbsp;It is really a fantastic interactive tool, but in the script below, you will see that it's usage in a script, just makes the script more complex. &amp;nbsp;And the interactive feature where the different values that are nicely displayed in the filter list, are not available from the filter when used in JSL.&lt;/P&gt;
&lt;P&gt;Here is the script using a scripted local data filter&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
// Get the levels of the Sex column. The Summarize function will
// create a list of the different levels of whatever column is 
// specified in the "By" claue
Summarize( dt, GroupBy = By( :Sex ) );
gb = Graph Builder(
	invisible,
	Size( 517, 437 ),
	Show Control Panel( 0 ),
	Variables( X( :age ), Y( :height ) ),
	Elements( Box Plot( X, Y, Legend( 3 ) ) )
);

For( i = 1, i &amp;lt;= N Items( GroupBy ), i++,
	gb &amp;lt;&amp;lt; Local Data Filter( Add Filter( columns( :Sex ), Where( :sex == GroupBy[i] ) ), Mode( Show( 1 ), Include( 1 ) ) );
	If( i == 1,
		gb &amp;lt;&amp;lt; Save Presentation( "$TEMP/jmp_example2.pptx" ),
		gb &amp;lt;&amp;lt; Save Presentation( "$TEMP/jmp_example2.pptx", Append )
	);
	gb &amp;lt;&amp;lt; remove data filter;
);

Open( "$TEMP/jmp_example2.pptx" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the example that I have been using in answering your questions, that does not use the local data filter, and actually gets a better version of the output you want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
// Get the levels of the Sex column. The Summarize function will
// create a list of the different levels of whatever column is 
// specified in the "By" claue
Summarize( dt, GroupBy = By( :Sex ) );

For( i = 1, i &amp;lt;= N Items( GroupBy ), i++,
	gb = dt &amp;lt;&amp;lt; Graph Builder(
	// The invisible option helps to keep the desktop clean
		invisible,
		Size( 517, 437 ),
		Show Control Panel( 0 ),
		Variables( X( :age ), Y( :height ) ),
		Elements( Box Plot( X, Y, Legend( 3 ) ) ), 
	// Here is an easy way to subset the data used in the grap
		Where( :sex == GroupBy[i] )
	);
	If(i==1,
		gb &amp;lt;&amp;lt; Save Presentation( "$TEMP/jmp_example.pptx"  ),
		gb &amp;lt;&amp;lt; Save Presentation( "$TEMP/jmp_example.pptx", Append  );
	);
);

Open( "$TEMP/jmp_example.pptx" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The second example is much simpler code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 09:43:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/38673#M22633</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-05-01T09:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to export JMP graph to PPT by JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/40288#M23590</link>
      <description>&lt;P&gt;May i ask, if there is option to use custome ppt template. where we can add multiple graphs in one slide &amp;nbsp;if we have a template?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:33:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-export-JMP-graph-to-PPT-by-JSL/m-p/40288#M23590</guid>
      <dc:creator>ram</dc:creator>
      <dc:date>2017-06-12T17:33:36Z</dc:date>
    </item>
  </channel>
</rss>

