<?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: Graph builder window size in Journal: Scaling issue [JSL] in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-builder-window-size-in-Journal-Scaling-issue-JSL/m-p/762755#M94259</link>
    <description>&lt;P&gt;I'm a little unclear on what the larger process is here, because you mention a Journal but I don't see a Journal as part of your script.&amp;nbsp; One thing that you might try is adding&amp;nbsp;&lt;FONT face="verdana,geneva"&gt;Fit to Window( "Off" )&lt;/FONT&gt; to your Graph Builder scripts.&amp;nbsp; This will turn off the default auto-stretching, which might be responsible for resizing the Graph Builder plots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that doesn't help, it might help to understand more about how the reports are being combined into a Journal, as it does sound like that is part of the process here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Dan&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 12:44:23 GMT</pubDate>
    <dc:creator>danschikore</dc:creator>
    <dc:date>2024-06-06T12:44:23Z</dc:date>
    <item>
      <title>Graph builder window size in Journal: Scaling issue [JSL]</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-builder-window-size-in-Journal-Scaling-issue-JSL/m-p/762692#M94236</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to write a script and run it using journal. The script is supposed to plot different graph builder windows. The issue I'm having is that sometimes when I try to change the axis setting (Min, Max, and Increment), the window gets very small and the axis setting becomes different than the one in the script. Ex:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2024-06-05 095013.png" style="width: 731px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64926i988F43199893774F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-06-05 095013.png" alt="Screenshot 2024-06-05 095013.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The interesting thing here is that when I try to use the re-run in a new window option, it produces a graph that actually reflects the script:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="When clicking at the red tringle, it shows an option to re-run the plot in a new window" style="width: 731px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64929i3F144A612AB566E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="re-run.png" alt="When clicking at the red tringle, it shows an option to re-run the plot in a new window" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;When clicking at the red tringle, it shows an option to re-run the plot in a new window&lt;/span&gt;&lt;/span&gt;&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="after_Re_Run.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64934i91AF50A286908909/image-size/large?v=v2&amp;amp;px=999" role="button" title="after_Re_Run.png" alt="after_Re_Run.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After trial and error, I believe it has something to do with the window size I'm choosing. Playing with the window size fixes the issue sometimes, or sometimes playing with the axis setting fix it too. However, this is a time-consuming process. Could I please get guidance on how to make sure I get the correct window size every time(like a dynamic window size) or a guidance on how to get rid of this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is a snapshot of the jsl code I'm using:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt; for( i3 =1, i3 &amp;lt; IDD_COUNT+1, i3++, &lt;BR /&gt;&lt;BR /&gt;        Sigma[i3] = Col Std Dev( AS COLUMN(IDD_LIST[i3]) );
		median[i3] = Col Median( AS COLUMN(IDD_LIST[i3]) );
		
		  gb = New Window( "Capability", hlb = H List Box() );  
		 // define spec limit to show the plot clearly
		specLimits =   as column(IDD_LIST[i3])  &amp;lt;&amp;lt; get property( "Spec Limits" );
		usln_value = specLimits["USL"];
		lsln_value = specLimits["LSL"];	
		//define Max, Min ,and Inc variables
		Max_ = Max( Add( median[i3], Multiply(10, sigma[i3] ) ) );
		Min_ = Min( Subtract( median[i3], Multiply(10 , sigma[i3] ) ) );
		Inc_ = (Multiply( 5, sigma[i3] ));
		
 						if ( Max_ &amp;lt; usln_value , Max_ = Max( Add( usln_value[i3], Multiply(3, sigma[i3] ) ) )  );
						if (Min_ &amp;gt; lsln_value , Min_ = Min( Subtract( lsln_value[i3], Multiply(3 , sigma[i3] ) ) )  );

 		hlb &amp;lt;&amp;lt; append(
		gb = Graph Builder(
		//window size
		Size( 5000, 5000),
		
		Variables(			
 			Y( IDD_LIST[i3] ),
			Group X(  :Program ) ,
		),
		Elements(
		 Histogram( X( 1 ), X( 2 ), X( 3 ), Y, Legend( 46 ),Means and Std Devs( 1 ) ),Smoother( X( 1 ), X( 2 ), X( 3 ), X( 4 ), Y, Legend( 49 ) ),
		Caption Box( Y, Legend( 50 ), Summary Statistic( "N" ),Summary Statistic 2( "5 Number Summary" ) ) 
				),
		SendToReport(
			Dispatch(
				{},
				"graph title",
				TextEditBox,
				{Set Text( Show( Char( Name Expr( IDD_LIST[i3] ) ) ); )}
					),
					Dispatch(
					{},
					Char( Name Expr( IDD_LIST[i3] ) ),
					ScaleBox,
					{Format( "Best", 6 ), Label Row( {Show Major Grid( 1 ), Show Minor Grid( 1 ) } ), Minor Ticks( 1 ), 
 					Max( Max_ ), Min( Min_ ), Inc( Inc_ )

					 } 
				),Dispatch(
				{},
				"400",
				ScaleBox,
				{Legend Model(
					46,
					Properties(
						0,
						{Line Color( 6 ), Fill Color( 38 )},
						Item ID( Char( Name Expr( IDD_LIST[i3] ) ), 1 )
					)
				)}
			),
					)
							);	&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jun 2024 18:27:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-builder-window-size-in-Journal-Scaling-issue-JSL/m-p/762692#M94236</guid>
      <dc:creator>RA899</dc:creator>
      <dc:date>2024-06-05T18:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Graph builder window size in Journal: Scaling issue [JSL]</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-builder-window-size-in-Journal-Scaling-issue-JSL/m-p/762755#M94259</link>
      <description>&lt;P&gt;I'm a little unclear on what the larger process is here, because you mention a Journal but I don't see a Journal as part of your script.&amp;nbsp; One thing that you might try is adding&amp;nbsp;&lt;FONT face="verdana,geneva"&gt;Fit to Window( "Off" )&lt;/FONT&gt; to your Graph Builder scripts.&amp;nbsp; This will turn off the default auto-stretching, which might be responsible for resizing the Graph Builder plots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that doesn't help, it might help to understand more about how the reports are being combined into a Journal, as it does sound like that is part of the process here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Dan&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 12:44:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-builder-window-size-in-Journal-Scaling-issue-JSL/m-p/762755#M94259</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2024-06-06T12:44:23Z</dc:date>
    </item>
  </channel>
</rss>

