<?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: Can't change FrameBox size when creating report - only when all display boxes AND window created. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901931#M106104</link>
    <description>&lt;P&gt;This has been a bug forever with GraphBuilder, and there is no easy work-around.&amp;nbsp; I have an external program that can send notifications back to JMP (it's a localhost server that JMP starts with runcommand) and I feed it a message to ping JMP back in 0.25 seconds, and on that pingback I trigger the forcing of the framesize -- which now occurs after the boxes have all been painted.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Sep 2025 08:55:32 GMT</pubDate>
    <dc:creator>ErraticAttack</dc:creator>
    <dc:date>2025-09-19T08:55:32Z</dc:date>
    <item>
      <title>Can't change FrameBox size when creating report - only when all display boxes AND window created.</title>
      <link>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901184#M106060</link>
      <description>&lt;P&gt;All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a script with function that creates a GraphBuilder. It then gets packed into display boxes and put into a new window. Somehow, commands to change FrameBox size from within the function are ignored, and I can only change it when window is created. Why is that? I'd like this functionality to be inside the function, so that it outputs a plot that does not need any additional tinkering with. Changing title works from within the function, why not changing size?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example with 3 different attempts to change FrameBox size - only the third one works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
X_Parameter = "height";
Y_Parameter = "weight";
groupColumn = "sex";
titleText = "Example";


GBfunction= Function( {dt, X_parameter, Y_Parameter, groupByColumnString, titleText = ""},
	groupByColumn = Column( dt, groupByColumnString );
	cb = Context Box(
		gb = Graph Builder(
			Size( 350, 600 ),
			Ignore Platform Preferences( 1 ),
			Show Control Panel( 0 ),
			Variables( X( Column( X_Parameter ) ), Y( Column( Y_Parameter ) ), Overlay( groupByColumn ) ), 

		);
	
		rgb = gb &amp;lt;&amp;lt; Report;
		(rgbOB = ((rgb &amp;lt;&amp;lt; XPath( "//OutlineBox[@helpKey = 'Graph Builder']" ))[1])) &amp;lt;&amp;lt; Set Title( titleText );
		//Attempt #1
		(rgb &amp;lt;&amp;lt; XPath( "(//OutlineBox//FrameBox)" )) &amp;lt;&amp;lt; Frame Size( 350, 200 );
		//Attempt #2
		//(rgbOB &amp;lt;&amp;lt; XPath( "//FrameBox" )) &amp;lt;&amp;lt; Frame Size( 350, 200 );
	
	);
	Return( cb );
);

lub = Lineup Box( N Col( 3 ) );
lub &amp;lt;&amp;lt; Append( GBfunction( dt, X_Parameter, Y_Parameter, groupColumn, titleText ) );
ob_group = Outline Box( "GB Function example: " || (dt &amp;lt;&amp;lt; Get Name) );
ob_group &amp;lt;&amp;lt; Append( lub );
nw = New Window( (dt &amp;lt;&amp;lt; get name), ob_group );

//Attempt #3
rgb = ob_group &amp;lt;&amp;lt; XPath( "//OutlineBox[@helpKey='Graph Builder']" );
//(rgb &amp;lt;&amp;lt; XPath( "(//OutlineBox//FrameBox)" )) &amp;lt;&amp;lt; Frame Size( 350, 200 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Sep 2025 17:04:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901184#M106060</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2025-09-16T17:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can't change FrameBox size when creating report - only when all display boxes AND window created.</title>
      <link>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901195#M106061</link>
      <description>&lt;P&gt;I think changing the frame size doesn't work properly as the frame hasn't yet been visualized, some auto-resizing does take over and there can potentially also be some timing issues.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 17:30:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901195#M106061</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-09-16T17:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't change FrameBox size when creating report - only when all display boxes AND window created.</title>
      <link>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901250#M106063</link>
      <description>&lt;P&gt;I tried setting auto stretching to 0 and stretching to none, obviously, didn't help :(&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 04:42:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901250#M106063</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2025-09-17T04:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't change FrameBox size when creating report - only when all display boxes AND window created.</title>
      <link>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901284#M106064</link>
      <description>&lt;P&gt;Figuring out what is forcing the size to be something weird is not always easy. Is there a specific reason why you aren't utilizing Graph Builder's &amp;lt;&amp;lt; Size? I know that sometimes it can require some pre-calculations for example when using groups or wrapping&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
X_Parameter = "height";
Y_Parameter = "weight";
groupColumn = "sex";
titleText = "Example";


GBfunction = Function({dt, X_parameter, Y_Parameter, groupByColumnString, titleText = ""}, {Default Local},
	groupByColumn = Column(dt, groupByColumnString);
	cb = Context Box(
		gb = dt &amp;lt;&amp;lt; Graph Builder(
			Size(100, 100),
			Ignore Platform Preferences(1),
			Show Control Panel(0),
			//Fit To Window("Off"),
			Variables(
				X(Column(X_Parameter)), 
				Y(Column(Y_Parameter)), 
				Overlay(groupByColumn)
			),
		);
	);
	
	rgb = Report(gb);
	(rgbOB = ((rgb &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey = 'Graph Builder']"))[1])) &amp;lt;&amp;lt; Set Title(titleText);
	fbs = rgb &amp;lt;&amp;lt; XPath("(//OutlineBox//FrameBox)");
	gb &amp;lt;&amp;lt; Size(400, 250);
	
	Return(cb);
);

lub = Lineup Box(N Col(3));
lub &amp;lt;&amp;lt; Append(GBfunction(dt, X_Parameter, Y_Parameter, groupColumn, titleText));
ob_group = Outline Box("GB Function example: " || (dt &amp;lt;&amp;lt; Get Name));
ob_group &amp;lt;&amp;lt; Append(lub);
nw = New Window((dt &amp;lt;&amp;lt; get name), ob_group);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 17 Sep 2025 06:24:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901284#M106064</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-09-17T06:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't change FrameBox size when creating report - only when all display boxes AND window created.</title>
      <link>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901522#M106073</link>
      <description>&lt;P&gt;Yes, there is a reason - I need to mimic the same look and feel that I had in previous iterations of the script that utilized Fit Y by X.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GraphBuilder will change FrameBox size depending on other elements in GB display box - Axis or Legend size, for instance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the end these plots will go to a report where the size of the graph area (what exactly the FrameBox is) should be consistent between different plots on the report. That's why.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 18:52:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901522#M106073</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2025-09-17T18:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't change FrameBox size when creating report - only when all display boxes AND window created.</title>
      <link>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901529#M106074</link>
      <description>&lt;P&gt;One option could be to create the new window first&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
X_Parameter = "height";
Y_Parameter = "weight";
groupColumn = "sex";
titleText = "Example";


GBfunction = Function({lub, dt, X_parameter, Y_Parameter, groupByColumnString, titleText = ""}, {Default Local},
	cb = Context Box(
		gb = dt &amp;lt;&amp;lt; Graph Builder(
			Size(600, 600),
			Ignore Platform Preferences(1),
			Show Control Panel(0), 
			Fit To Window("Off"),
			Variables(X(Eval(X_Parameter)), Y(Eval(Y_Parameter)), Overlay(Eval(groupByColumnString))),

		)
	);
	
	rgb = Report(gb);
	lub &amp;lt;&amp;lt; Append(cb);
	
	(rgbOB = ((rgb &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey = 'Graph Builder']"))[1])) &amp;lt;&amp;lt;
	Set Title(titleText);
	fbs = rgb &amp;lt;&amp;lt; XPath("(//OutlineBox//FrameBox)");
	fbs &amp;lt;&amp;lt; Frame Size(400, 250);
);

lub = Lineup Box(N Col(3));
ob_group = Outline Box("GB Function example: " || (dt &amp;lt;&amp;lt; Get Name));
ob_group &amp;lt;&amp;lt; Append(lub);
nw = New Window((dt &amp;lt;&amp;lt; get name), Window View("Invisible"), ob_group);

GBfunction(lub, dt, X_Parameter, Y_Parameter, groupColumn, titleText);
nw &amp;lt;&amp;lt; Show Window(1);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 19:35:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901529#M106074</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-09-17T19:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't change FrameBox size when creating report - only when all display boxes AND window created.</title>
      <link>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901535#M106075</link>
      <description>&lt;P&gt;You example works as written. However, when I try to implement it in my real-life script, it does resize the FrameBox from Size(350, 600) to something else at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically, I have LineUpBox for a reason - I generate several plots in that box, and every third one (or to be precise, every rightmost in each row) has Legend displayed (same for all plots). So when I run it with three plots, the final size of all three FrameBoxes ends up being:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;{{350, 220}, {350, 220}, {350, 240}}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;instead of {350, 200} that I am trying to resize it to or the initial {350, 600} that GraphBuilder made it with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll try to make a working example that breaks your suggestion later on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 21:51:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901535#M106075</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2025-09-17T21:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can't change FrameBox size when creating report - only when all display boxes AND window created.</title>
      <link>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901931#M106104</link>
      <description>&lt;P&gt;This has been a bug forever with GraphBuilder, and there is no easy work-around.&amp;nbsp; I have an external program that can send notifications back to JMP (it's a localhost server that JMP starts with runcommand) and I feed it a message to ping JMP back in 0.25 seconds, and on that pingback I trigger the forcing of the framesize -- which now occurs after the boxes have all been painted.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 08:55:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-t-change-FrameBox-size-when-creating-report-only-when-all/m-p/901931#M106104</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2025-09-19T08:55:32Z</dc:date>
    </item>
  </channel>
</rss>

