<?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: Lock Size of Graph Builder with Page and Wrap Variables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Lock-Size-of-Graph-Builder-with-Page-and-Wrap-Variables/m-p/107991#M39291</link>
    <description>&lt;P&gt;Oops...I didn't see the sample output.&amp;nbsp; But all you have to do to make that happen, is to make your data table have at least one row for each combination of your wrap column.&amp;nbsp; Here is an example of that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

// make the number of graphs different for males but has rows with missing data
dt &amp;lt;&amp;lt; select where( :sex == "M" &amp;amp; :age &amp;gt;=16 );
dt:height[dt &amp;lt;&amp;lt; get selected rows] = .;


New Window( "filter test",
	Data Filter Context Box(
		H List Box(
			dt &amp;lt;&amp;lt; Data Filter(
				Local,
				Add Filter(
					columns( :sex )
				),
				Mode( Select( 0 ), Show( 1 ), Include( 1 ) )
			),
			V List Box(
				t = Text Box( "0 Rows Excluded" ),
				gb =Graph Builder(
					Size( 528, 490 ),
					Show Control Panel( 0 ),
					Variables( X( :weight ), Y( :height ), Wrap( :age ) ),
					Elements( Points( X, Y, Legend( 27 ) ), Smoother( X, Y, Legend( 28 ) ) )
				)
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Jan 2019 22:26:25 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2019-01-24T22:26:25Z</dc:date>
    <item>
      <title>Lock Size of Graph Builder with Page and Wrap Variables</title>
      <link>https://community.jmp.com/t5/Discussions/Lock-Size-of-Graph-Builder-with-Page-and-Wrap-Variables/m-p/107964#M39281</link>
      <description>&lt;P&gt;Is there a way that I can force the graphs in graph builder to stay the same size? I have an analysis that opens an interactive graph that includes both wrap and page variables. There is a local data filter that allows the user to go look at the data by instrument. However, not every instrument contains data in all of the categories of the page variable. I can't figure out how to keep the graphs from automatically resizing when the user selects a different option from the local data filter. For example, this instrument has data in only one of the categories of the page variable:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 635px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15226i27B42DB833A1C99E/image-dimensions/635x461?v=v2" width="635" height="461" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This data is exactly how I would like to see it, with each individual graph (from the wrap variable) sized to isometric. When I select a different instrument from the local data filter, one that has data in multiple categories of the page variable, the graphs can become difficult see:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15227i6BDFE296FEFD1BE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there anything I can add to my script to make it so that each graph stays relatively the same size no matter how many categories of the wrap or page variables appear?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:25:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Lock-Size-of-Graph-Builder-with-Page-and-Wrap-Variables/m-p/107964#M39281</guid>
      <dc:creator>aallman</dc:creator>
      <dc:date>2023-06-09T23:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Size of Graph Builder with Page and Wrap Variables</title>
      <link>https://community.jmp.com/t5/Discussions/Lock-Size-of-Graph-Builder-with-Page-and-Wrap-Variables/m-p/107990#M39290</link>
      <description>&lt;P&gt;Here is an example based on the Big Class data table that does what I think you want.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rsframefemale.PNG" style="width: 446px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15231i2CD617E2CCEAD114/image-dimensions/446x435?v=v2" width="446" height="435" role="button" title="rsframefemale.PNG" alt="rsframefemale.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rsframemale.PNG" style="width: 445px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15232iABD6D813E97A123A/image-dimensions/445x328?v=v2" width="445" height="328" role="button" title="rsframemale.PNG" alt="rsframemale.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

// make the number of graphs different for males
dt &amp;lt;&amp;lt; select where( :sex == "M" &amp;amp; :age &amp;gt;=16 );
dt &amp;lt;&amp;lt; delete rows;


New Window( "filter test",
	Data Filter Context Box(
		H List Box(
			dt &amp;lt;&amp;lt; Data Filter(
				Local,
				Add Filter(
					columns( :sex )
				),
				Mode( Select( 0 ), Show( 1 ), Include( 1 ) )
			),
			V List Box(
				t = Text Box( "0 Rows Excluded" ),
				gb =Graph Builder(
					Size( 528, 490 ),
					Show Control Panel( 0 ),
					Variables( X( :weight ), Y( :height ), Wrap( :age ) ),
					Elements( Points( X, Y, Legend( 27 ) ), Smoother( X, Y, Legend( 28 ) ) )
				)
			)
		)
	)
);
updatetext = Function( {},
	rs = t &amp;lt;&amp;lt; Get Row States();
	n = 0;
	For( ii = 1, ii &amp;lt;= N Rows( rs ), ii++,
		If( Excluded( As Row State( rs[ii] ) ),
			n
			++)
	);
	t &amp;lt;&amp;lt; Set Text( Char( n ) || " Rows Excluded" );
);
rsupdate = Function( {a},
	(gb &amp;lt;&amp;lt; xpath( "//FrameBox") ) &amp;lt;&amp;lt; frame size( 200,150);
);
rsh = t &amp;lt;&amp;lt; Make Row State Handler( dt, rsupdate );
updatetext();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Jan 2019 22:18:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Lock-Size-of-Graph-Builder-with-Page-and-Wrap-Variables/m-p/107990#M39290</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-01-24T22:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Size of Graph Builder with Page and Wrap Variables</title>
      <link>https://community.jmp.com/t5/Discussions/Lock-Size-of-Graph-Builder-with-Page-and-Wrap-Variables/m-p/107991#M39291</link>
      <description>&lt;P&gt;Oops...I didn't see the sample output.&amp;nbsp; But all you have to do to make that happen, is to make your data table have at least one row for each combination of your wrap column.&amp;nbsp; Here is an example of that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

// make the number of graphs different for males but has rows with missing data
dt &amp;lt;&amp;lt; select where( :sex == "M" &amp;amp; :age &amp;gt;=16 );
dt:height[dt &amp;lt;&amp;lt; get selected rows] = .;


New Window( "filter test",
	Data Filter Context Box(
		H List Box(
			dt &amp;lt;&amp;lt; Data Filter(
				Local,
				Add Filter(
					columns( :sex )
				),
				Mode( Select( 0 ), Show( 1 ), Include( 1 ) )
			),
			V List Box(
				t = Text Box( "0 Rows Excluded" ),
				gb =Graph Builder(
					Size( 528, 490 ),
					Show Control Panel( 0 ),
					Variables( X( :weight ), Y( :height ), Wrap( :age ) ),
					Elements( Points( X, Y, Legend( 27 ) ), Smoother( X, Y, Legend( 28 ) ) )
				)
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Jan 2019 22:26:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Lock-Size-of-Graph-Builder-with-Page-and-Wrap-Variables/m-p/107991#M39291</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-01-24T22:26:25Z</dc:date>
    </item>
  </channel>
</rss>

