<?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 use JMP Script to modify the frame size for existing report? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-JMP-Script-to-modify-the-frame-size-for-existing/m-p/618907#M81828</link>
    <description>&lt;P&gt;I find this to be a good resource from Farhan about XPath.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discovery-Summit-2015/JMP-Discovery-2015-Mining-JMP-Reports-v10-pdf/ta-p/22595?attachment-id=752" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discovery-Summit-2015/JMP-Discovery-2015-Mining-JMP-Reports-v10-pdf/ta-p/22595?attachment-id=752&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 20:25:30 GMT</pubDate>
    <dc:creator>vince_faller</dc:creator>
    <dc:date>2023-03-31T20:25:30Z</dc:date>
    <item>
      <title>How to use JMP Script to modify the frame size for existing report?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JMP-Script-to-modify-the-frame-size-for-existing/m-p/618833#M81820</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;,&amp;nbsp;thank you so much to answer my previous question. Since I have more than 30 DoE models, that's why I am trying to automate my data analysis and copy &amp;amp; paste graphs. Could you please tell how to adjust the Frame Size for example "Residual Normal Quantile Plot" by modifying the code below like " {"Response XXXX", "Residual Normal Quantile Plot"},&lt;BR /&gt;"Bivar Resid Quantile Plot",&lt;BR /&gt;FrameBox,&lt;BR /&gt;{Frame Size( 271, 213 )}"? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can manually adjust the frame size by editing&amp;nbsp;model fit, but it's very time consuming&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a piece of code that will open the Summary of Fit if it isn't open.&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;ob = rbiv &amp;lt;&amp;lt; XPath( "//OutlineBox[ contains( text(), 'Response' ) ]" );

Print( ob );

For( i = 1, i &amp;lt;= N Items( ob ), i++,
	name = ob[i] &amp;lt;&amp;lt; get title;
	Print( name );
	obj = ob[i] &amp;lt;&amp;lt; get scriptable object;
	try( obj&amp;lt;&amp;lt;Summary of Fit(1));
	ob[i] &amp;lt;&amp;lt; Close( 1 );
	ob[i]["Summary of Fit"] &amp;lt;&amp;lt; Close( 0 );
	ob[i]["Parameter Estimates"] &amp;lt;&amp;lt; Close( 0 );
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Additionally, it is a simple matter to open the Summary of Fit sections for all models, with one click.&amp;nbsp; If you hold down the CNTL key and click on the Summary of Fit selection, and all models will have the Summary of Fit added to the analysis.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:31:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JMP-Script-to-modify-the-frame-size-for-existing/m-p/618833#M81820</guid>
      <dc:creator>lazzybug</dc:creator>
      <dc:date>2023-06-11T11:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JMP Script to modify the frame size for existing report?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JMP-Script-to-modify-the-frame-size-for-existing/m-p/618848#M81821</link>
      <description>&lt;P&gt;OK, it is time for you to do some reading.&amp;nbsp; You need to take the time to read about Display Trees in the Scripting Guide.&amp;nbsp; This will provide you with the details on how to manipulate the JMP output.&amp;nbsp; You need to also take the time to learn about the XPATH() function, and the XPATH elements.&amp;nbsp; It is a standardized method for searching XML.&lt;/P&gt;
&lt;P&gt;Here is the modification you requested&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
rbiv = current report();

ob = rbiv &amp;lt;&amp;lt; XPath( "//OutlineBox[ contains( text(), 'Response' ) ]" );

Print( ob );

For( i = 1, i &amp;lt;= N Items( ob ), i++,
	name = ob[i] &amp;lt;&amp;lt; get title;
	Print( name );
	obj = ob[i] &amp;lt;&amp;lt; get scriptable object;
	try( obj&amp;lt;&amp;lt;Summary of Fit(1));
	ob[i] &amp;lt;&amp;lt; Close( 1 );
	ob[i]["Summary of Fit"] &amp;lt;&amp;lt; Close( 0 );
	ob[i]["Parameter Estimates"] &amp;lt;&amp;lt; Close( 0 );
	ob[i][Frame Box(1)] &amp;lt;&amp;lt; Frame Size(400,400);
	ob[i][Frame Box(2)] &amp;lt;&amp;lt; Frame Size(400,400);
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Mar 2023 17:55:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JMP-Script-to-modify-the-frame-size-for-existing/m-p/618848#M81821</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-03-31T17:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JMP Script to modify the frame size for existing report?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JMP-Script-to-modify-the-frame-size-for-existing/m-p/618857#M81822</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;, I will spend more time reading the manual definitely,&amp;nbsp;thank you so much for your recommendation. The coding in JMP is quite different with other programming language, the learning curve is a little bit longer to get familiar with. But it's very powerful to automate my work, thank you again.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 18:21:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JMP-Script-to-modify-the-frame-size-for-existing/m-p/618857#M81822</guid>
      <dc:creator>lazzybug</dc:creator>
      <dc:date>2023-03-31T18:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JMP Script to modify the frame size for existing report?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JMP-Script-to-modify-the-frame-size-for-existing/m-p/618907#M81828</link>
      <description>&lt;P&gt;I find this to be a good resource from Farhan about XPath.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discovery-Summit-2015/JMP-Discovery-2015-Mining-JMP-Reports-v10-pdf/ta-p/22595?attachment-id=752" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discovery-Summit-2015/JMP-Discovery-2015-Mining-JMP-Reports-v10-pdf/ta-p/22595?attachment-id=752&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 20:25:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JMP-Script-to-modify-the-frame-size-for-existing/m-p/618907#M81828</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2023-03-31T20:25:30Z</dc:date>
    </item>
  </channel>
</rss>

