<?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 Re: How to set graph size when export to PPT by JSL (graph builder) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-set-graph-size-when-export-to-PPT-by-JSL-graph-builder/m-p/406567#M65669</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6657"&gt;@ih&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your&amp;nbsp;prompt response.&lt;/P&gt;&lt;P&gt;I tried the script you suggested but it wasn't successful. The result is shown in the attachment "jmp_example2 (graph builder)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expect that the second graph should be larger than the first graph cuz the frame size was set to (1400, 600) in the second graph but they didn't work as my expectation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I tried to export a bivariate graph, it was successful. The result is shown in the attachment "jmp_example (Bivariate)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I doubt that the script is not suitable for&amp;nbsp;graph builder.&lt;/P&gt;&lt;P&gt;Could you help me to&amp;nbsp;figure out this question?&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Aug 2021 02:13:48 GMT</pubDate>
    <dc:creator>LIANGYAHAN</dc:creator>
    <dc:date>2021-08-03T02:13:48Z</dc:date>
    <item>
      <title>How to set graph size when export to PPT by JSL (graph builder)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-graph-size-when-export-to-PPT-by-JSL-graph-builder/m-p/406203#M65641</link>
      <description>&lt;P&gt;Hello, I am a beginer of jsl . I have one question about setting picture size when saving to PPT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below script does work when I was trying to save a bivariate graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ), Group By(:sex), Fit Line({report(0)}) );
rbiv = biv &amp;lt;&amp;lt; report;
rbiv[Framebox(1)] &amp;lt;&amp;lt; row legend(:sex, color(1), marker(1));
rbiv &amp;lt;&amp;lt; Save Presentation( "$TEMP/jmp_example.pptx");
rbiv[Framebox(1)] &amp;lt;&amp;lt; frame size(1500,480);
rbiv &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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;However, When I was trying to save a graph from graph builder, below script seems doesn't work.&lt;/P&gt;&lt;P&gt;Thus, my question is how to set graph&amp;nbsp;size when export to PPT by JSL especially in graph from graph builder.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv =Graph Builder(
	Size( 755, 297 ),
	Show Control Panel( 0 ),
	Variables( X( :age ), Y( :height ) ),
	Elements( Bar( X, Y, Legend( 4 ) ) )
);
rbiv = biv &amp;lt;&amp;lt; report;
rbiv[Framebox(1)] &amp;lt;&amp;lt; row legend(:sex, color(1), marker(1));
rbiv &amp;lt;&amp;lt; Save Presentation( "$TEMP/jmp_example.pptx");
rbiv[Framebox(1)] &amp;lt;&amp;lt; frame size(1400, 600);
rbiv &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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:53:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-graph-size-when-export-to-PPT-by-JSL-graph-builder/m-p/406203#M65641</guid>
      <dc:creator>LIANGYAHAN</dc:creator>
      <dc:date>2023-06-09T19:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to set graph size when export to PPT by JSL (graph builder)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-graph-size-when-export-to-PPT-by-JSL-graph-builder/m-p/406218#M65642</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/16738"&gt;@LIANGYAHAN&lt;/a&gt;,&amp;nbsp;thank you for the easily reproducible example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you hit on one of the harder-to-dubug parts of JMP which is when a message is sent to an object that isn't created yet. A wait(0) statement will often fix cases where something works as expected interactively when you execute one line at a time (as this one does) but does not work when run all together.&amp;nbsp; In this case, adding a Wait(0); before the frame size message should solve your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The wait function will allow JMP to draw all elements and 'catch up' to where you would be if running one line at a time interactively.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv =Graph Builder(
	Size( 755, 297 ),
	Show Control Panel( 0 ),
	Variables( X( :age ), Y( :height ) ),
	Elements( Bar( X, Y, Legend( 4 ) ) )
);
rbiv = biv &amp;lt;&amp;lt; report;
rbiv[Framebox(1)] &amp;lt;&amp;lt; row legend(:sex, color(1), marker(1));
rbiv &amp;lt;&amp;lt; Save Presentation( "$TEMP/jmp_example2.pptx");
wait(0);
rbiv[Framebox(1)] &amp;lt;&amp;lt; frame size(1400, 600);
rbiv &amp;lt;&amp;lt; Save Presentation( "$TEMP/jmp_example2.pptx", append );
Open( "$TEMP/jmp_example2.pptx" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Aug 2021 13:13:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-graph-size-when-export-to-PPT-by-JSL-graph-builder/m-p/406218#M65642</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-08-02T13:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to set graph size when export to PPT by JSL (graph builder)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-graph-size-when-export-to-PPT-by-JSL-graph-builder/m-p/406567#M65669</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6657"&gt;@ih&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your&amp;nbsp;prompt response.&lt;/P&gt;&lt;P&gt;I tried the script you suggested but it wasn't successful. The result is shown in the attachment "jmp_example2 (graph builder)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expect that the second graph should be larger than the first graph cuz the frame size was set to (1400, 600) in the second graph but they didn't work as my expectation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I tried to export a bivariate graph, it was successful. The result is shown in the attachment "jmp_example (Bivariate)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I doubt that the script is not suitable for&amp;nbsp;graph builder.&lt;/P&gt;&lt;P&gt;Could you help me to&amp;nbsp;figure out this question?&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 02:13:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-graph-size-when-export-to-PPT-by-JSL-graph-builder/m-p/406567#M65669</guid>
      <dc:creator>LIANGYAHAN</dc:creator>
      <dc:date>2021-08-03T02:13:48Z</dc:date>
    </item>
  </channel>
</rss>

