<?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: JMP 14.2 - JSL - Graph Builder Size Ignored Inside Boxes Sent to Journal in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-14-2-JSL-Graph-Builder-Size-Ignored-Inside-Boxes-Sent-to/m-p/295974#M55727</link>
    <description>Thanks Jeff,&lt;BR /&gt;&lt;BR /&gt;That doesn't seem to fix it either. For anyone else who's having this problem I've simply circled around the issue by building a window and then sending that window to the Journal. Doing so feels hacky since we're circling through another part of the UI to get to the destination, but it gets the job done.&lt;BR /&gt;&lt;BR /&gt;Also - I noticed that I had an extra variable in my code example which prevented its running. I've corrected the original post.</description>
    <pubDate>Mon, 31 Aug 2020 16:32:11 GMT</pubDate>
    <dc:creator>jsrmfh</dc:creator>
    <dc:date>2020-08-31T16:32:11Z</dc:date>
    <item>
      <title>JMP 14.2 - JSL - Graph Builder Size Ignored Inside Boxes Sent to Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-14-2-JSL-Graph-Builder-Size-Ignored-Inside-Boxes-Sent-to/m-p/288035#M55532</link>
      <description>&lt;P&gt;Full disclosure - I'm a bigger fan of the older graph plotting routines in JSL than Graph Builder but I'm making some honest attempts to switch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running into a problem where I'm dynamically adding graphs to a Journal and I'm trying to very tightly control the graph sizes so axes and values line up horizontally. I'm building an H List Box in JSL with several items, sending that H List Box to the Journal, and then doing the same thing on another parameter. However, when I use Graph Builder, the Size attributes appear to be completely ignored and all GraphBuilders end up in what appears to be 300x300px. When I build the graphs via other graphing routes (variability plots, control chart, overlay plot), this just doesn't happen. It works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried going about this a different way and made some test code to do the exact same addition of the H List Box to a new window instead of the Journal and everything works as expected. See the image below with the incorrect Journal output on left and the correct "New Window" output on right. Anyone know what's going on here with the Journal and what steps need to be taken to mitigate?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jsrmfh_0-1598380137617.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26403iAE016C67335A4121/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jsrmfh_0-1598380137617.png" alt="jsrmfh_0-1598380137617.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Windows JMP 14.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example test code using Big Class example data table.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Uses BigClass example data

// Create array of parameters
ParameterArray = {"height", "weight"};
numbatches = nrows(Current Data Table());
wind = New Window( "Example");

// Loop through parameters
for (i = 1, i &amp;lt;= N Items(ParameterArray),i++,
	ColName = ParameterArray[i];
	
		// Create charts
	xBox = H List Box ();
	
	xBox &amp;lt;&amp;lt; append(	gbbp = Graph Builder(
			Size( 150, 300 ),
			Show Control Panel( 0 ),
			Variables( Y( Column( ColName ) ), Overlay( :sex ) ),
			Elements( Box Plot( Y, Legend( 2 ) ) ),
			SendToReport(
				Dispatch(
					{},
					ColName,
					ScaleBox,
					{Label Row( {Major Grid Line Color( -14277081 ), Show Major Grid( 1 )} )
					}
				),
				Dispatch( {}, "400", LegendBox, {Set Title( "" )} )
			)
		);
	);
		
	xBox &amp;lt;&amp;lt; append(	gb = Graph Builder(
			Size( 900, 300 ),
			Show Control Panel( 0 ),
			Legend Position( "Inside Left" ),
			Variables( X( :age ), Y( Column( ColName ) ), Overlay( :sex ) ),
			Elements( Line( X, Y, Legend( 32 ) ) ),
			SendToReport(
				Dispatch(
					{},
					"Graph Builder",
					OutlineBox,
					{Set Title( ColName || " Chart" )}
				),
				Dispatch(
					{},
					"graph title",
					TextEditBox,
					{Set Text( ColName || " Chart" )}
				),
				Dispatch( {}, "400", LegendBox, {Sides( "Left" )} )
			)
		);
	);


	// Save to journal
	xBox &amp;lt;&amp;lt; journal;
	wind &amp;lt;&amp;lt; append(xBox);

);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:05:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-14-2-JSL-Graph-Builder-Size-Ignored-Inside-Boxes-Sent-to/m-p/288035#M55532</guid>
      <dc:creator>jsrmfh</dc:creator>
      <dc:date>2023-06-11T11:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: JMP 14.2 - JSL - Graph Builder Size Ignored Inside Boxes Sent to Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-14-2-JSL-Graph-Builder-Size-Ignored-Inside-Boxes-Sent-to/m-p/288082#M55538</link>
      <description>&lt;P&gt;I don't know if this will be the solution but try turning &lt;STRONG&gt;&lt;A href="https://www.jmp.com/support/help/en/15.2/#page/jmp/red-triangle-options.shtml#ww595557" target="_self"&gt;Fit to Window&lt;/A&gt;&lt;/STRONG&gt; off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-08-25_16-00-25.899.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26407iE3BD823B4FD8EF2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-08-25_16-00-25.899.png" alt="2020-08-25_16-00-25.899.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 457, 479 ),
	Fit to Window( "Off" ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Aug 2020 20:04:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-14-2-JSL-Graph-Builder-Size-Ignored-Inside-Boxes-Sent-to/m-p/288082#M55538</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2020-08-25T20:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: JMP 14.2 - JSL - Graph Builder Size Ignored Inside Boxes Sent to Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-14-2-JSL-Graph-Builder-Size-Ignored-Inside-Boxes-Sent-to/m-p/295974#M55727</link>
      <description>Thanks Jeff,&lt;BR /&gt;&lt;BR /&gt;That doesn't seem to fix it either. For anyone else who's having this problem I've simply circled around the issue by building a window and then sending that window to the Journal. Doing so feels hacky since we're circling through another part of the UI to get to the destination, but it gets the job done.&lt;BR /&gt;&lt;BR /&gt;Also - I noticed that I had an extra variable in my code example which prevented its running. I've corrected the original post.</description>
      <pubDate>Mon, 31 Aug 2020 16:32:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-14-2-JSL-Graph-Builder-Size-Ignored-Inside-Boxes-Sent-to/m-p/295974#M55727</guid>
      <dc:creator>jsrmfh</dc:creator>
      <dc:date>2020-08-31T16:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: JMP 14.2 - JSL - Graph Builder Size Ignored Inside Boxes Sent to Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-14-2-JSL-Graph-Builder-Size-Ignored-Inside-Boxes-Sent-to/m-p/451118#M69805</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've just fallen across this, trying to put several box plots into a report with some other stuff. At least it's not just me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did this ever get fixed? Is it a bug or a feature?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to do what you did ("build a window and then sending it to the journal")?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Struggling to get going with JSL as it seems to be ... a bit different to any other language I've used, and I haven't time to spend understanding it all in depth.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way of making a box plot that doesn't involve Graph Builder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Struggling with the documentation as well, which doesn't help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 15:44:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-14-2-JSL-Graph-Builder-Size-Ignored-Inside-Boxes-Sent-to/m-p/451118#M69805</guid>
      <dc:creator>JohnJoyceFlusso</dc:creator>
      <dc:date>2022-01-13T15:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: JMP 14.2 - JSL - Graph Builder Size Ignored Inside Boxes Sent to Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-14-2-JSL-Graph-Builder-Size-Ignored-Inside-Boxes-Sent-to/m-p/451775#M69850</link>
      <description>&lt;P&gt;I think the main reason for the sizing issue is that the reports are not part of a window at the time that they are journaled.&amp;nbsp; This should probably be considered a bug and I will report it, but one way to work around this is to simply reorder the commands to add the reports to the window and save the journal:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	// Add reports to window
	wind &amp;lt;&amp;lt; append(xBox);
	// Save to journal
	xBox &amp;lt;&amp;lt; journal;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;-Dan&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jan 2022 04:52:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-14-2-JSL-Graph-Builder-Size-Ignored-Inside-Boxes-Sent-to/m-p/451775#M69850</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2022-01-16T04:52:31Z</dc:date>
    </item>
  </channel>
</rss>

