<?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: Standardize Graphs in Graph Builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/82486#M37172</link>
    <description>&lt;P&gt;Here is a short script that will show you an example on how to do this....Documentation on this is in the Scripting Guide and the Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Books==&amp;gt;Scripting Guide&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 );
Open( "$SAMPLE_DATA/Big Class.jmp" );

gb = Graph Builder(
	Size( 528, 484 ),
	Show Control Panel( 0 ),
	Variables( X( :sex ), Y( :height ), Group X( :age ) ),
	Elements( Box Plot( X, Y, Legend( 1 ) ) )
);

rgb = Report( gb );

// Set the size of the display
rgb[Frame Box( 1 )] &amp;lt;&amp;lt; Frame Size( 100, 300 );

// Set the title size
rgb[Outline Box( 1 )][Text Box( 1 )] &amp;lt;&amp;lt; set font size( 20 );

// Set axis font size
rgb[AxisBox( 2 )] &amp;lt;&amp;lt; label row( set font size( 14 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 04 Nov 2018 17:10:56 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-11-04T17:10:56Z</dc:date>
    <item>
      <title>Standardize Graphs in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/82485#M37171</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Is it possible to standardize graphs from graph builder, after they have been created, with regards to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class="s1"&gt;size (for example 1200 by 900 pixel)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="s1"&gt;axis settings (font size)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="s1"&gt;and title (font size)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;by applying JSL? Are there other ways to achieve this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:25:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/82485#M37171</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2023-06-09T23:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Standardize Graphs in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/82486#M37172</link>
      <description>&lt;P&gt;Here is a short script that will show you an example on how to do this....Documentation on this is in the Scripting Guide and the Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Books==&amp;gt;Scripting Guide&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 );
Open( "$SAMPLE_DATA/Big Class.jmp" );

gb = Graph Builder(
	Size( 528, 484 ),
	Show Control Panel( 0 ),
	Variables( X( :sex ), Y( :height ), Group X( :age ) ),
	Elements( Box Plot( X, Y, Legend( 1 ) ) )
);

rgb = Report( gb );

// Set the size of the display
rgb[Frame Box( 1 )] &amp;lt;&amp;lt; Frame Size( 100, 300 );

// Set the title size
rgb[Outline Box( 1 )][Text Box( 1 )] &amp;lt;&amp;lt; set font size( 20 );

// Set axis font size
rgb[AxisBox( 2 )] &amp;lt;&amp;lt; label row( set font size( 14 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Nov 2018 17:10:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/82486#M37172</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-11-04T17:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Standardize Graphs in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/82490#M37175</link>
      <description>&lt;P&gt;Thanks for the reply Jim. The scripts are pointing in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a general approach, were I can run for example an add in, which transforms an created graph&amp;nbsp;from graph&amp;nbsp;builder into defined a standard&amp;nbsp;graph size, standard title and axis size?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Nov 2018 20:44:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/82490#M37175</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-11-04T20:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Standardize Graphs in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/82491#M37176</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );

Graph Builder(
	Size( 528, 484 ),
	Show Control Panel( 0 ),
	Variables( X( :sex ), Y( :height ), Group X( :age ) ),
	Elements( Box Plot( X, Y, Legend( 1 ) ) )
);


// The code below could be put into an JMP Addin, and it would scan through all
// of the windows and when the first Graph Builder output window is found, it
// would set the standard settings
//
// The code could also be changed to display a list of all of the Graph Builder windows found
// and the user could then select the one(s) to set
//
// There are other issues, since the Graph Builder can produce a multitude of
// outputs.  The setting of the graph area size, will vary based upon the 
// elements within the output display.  
i = 1;
stop = "No";
While( Window( i ) &amp;lt;&amp;lt; Get Window Title != {} &amp;amp; Stop == "No",
	If( Word( 2, Window( i ) &amp;lt;&amp;lt; Get Window Title, "-" ) == " Graph Builder",
		stop = "Yes";
		Break();
	);
	i++;
);

If( stop == "Yes", 
// Set the size of the display
	Window( i )[Frame Box( 1 )] &amp;lt;&amp;lt; Frame Size( 100, 300 );

// Set the title size
	Window( i )[Outline Box( 1 )][Text Box( 1 )] &amp;lt;&amp;lt; set font size( 20 );

// Set axis font size
	Window( i )[AxisBox( 2 )] &amp;lt;&amp;lt; label row( set font size( 14 ) );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Nov 2018 02:12:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/82491#M37176</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-11-05T02:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Standardize Graphs in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/85791#M38302</link>
      <description>&lt;P&gt;Sorry for the late reply. I did try to built an add-in or run the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;i = 1;
stop = "No";
While( Window( i ) &amp;lt;&amp;lt; Get Window Title != {} &amp;amp; Stop == "No",
	If( Word( 2, Window( i ) &amp;lt;&amp;lt; Get Window Title, "-" ) == " Graph Builder",
		stop = "Yes";
		Break();
	);
	i++;
);

If( stop == "Yes", 
// Set the size of the display
	Window( i )[Frame Box( 1 )] &amp;lt;&amp;lt; Frame Size( 100, 300 );

// Set the title size
	Window( i )[Outline Box( 1 )][Text Box( 1 )] &amp;lt;&amp;lt; set font size( 20 );

// Set axis font size
	Window( i )[AxisBox( 2 )] &amp;lt;&amp;lt; label row( set font size( 14 ) );
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;for other data sets with open graphs in graph builder. I could't see any changes or impact on the graphs. Am I missing something?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 16:06:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/85791#M38302</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-12-13T16:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Standardize Graphs in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/85801#M38308</link>
      <description>&lt;P&gt;What I supplied was&amp;nbsp;code that will work for a given example. &amp;nbsp; It is intended to show the approach that you can use to get done what you want.&amp;nbsp; However, becaue of the great number of posibilities of the output coming out of Graph Builder, the pointers to the text box() and axis box() may be totally different for alternate graphs.&amp;nbsp; You will need to examine the different outputs and then move the required code into your script.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 18:22:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/85801#M38308</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-13T18:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Standardize Graphs in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/85853#M38335</link>
      <description>&lt;P&gt;Thanks for your fast reply.&amp;nbsp; According to my&amp;nbsp;experience it is tricky to transfer JMP graphs that they have similar look in Power Point etc.&lt;/P&gt;&lt;P&gt;I'm beginner in JSL. Therefore I was hoping for a simple solution, with which I'm able to&amp;nbsp;standardize a current graph from graph builder, with regards to the title, axis and graph size or format (length: width for example 3:2) and overcome the different looks in Power Point etc.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 08:48:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/85853#M38335</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-12-14T08:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Standardize Graphs in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/425043#M67439</link>
      <description>&lt;P&gt;This is very neccessary! A script is not helpful as it is too cumbersome. I need an easy way to create several graphs of the same dimensions without always reverting to dragging around the window&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 08:17:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/425043#M67439</guid>
      <dc:creator>ezorlo</dc:creator>
      <dc:date>2021-10-10T08:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Standardize Graphs in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/425112#M67455</link>
      <description>&lt;P&gt;Although it won't work after a graph is created, but in the Graph Builder preferences you can specify a graph height and graph width. This would apply then to every graph created by Graph Builder.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 00:42:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Standardize-Graphs-in-Graph-Builder/m-p/425112#M67455</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2021-10-11T00:42:57Z</dc:date>
    </item>
  </channel>
</rss>

