<?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 Lineup Box Skip row in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Lineup-Box-Skip-row/m-p/445181#M69313</link>
    <description>&lt;P&gt;I'm trying to skip a row of charts within the Lineup Box. For instance, instead of a 4x4 grid, I want 4 charts on the first row, 3 charts on the 2nd row, etc. Is there a way to skip a row or add a line break within the Lineup box?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();
//where dtLookup is the data table containing a list of X and Y columns to plot from dt

nw = New Window( "Outputs", lub = Lineup Box( N Col( 4 ) ) );

For Each Row(dtLookup,
	lub &amp;lt;&amp;lt; append(
		dt &amp;lt;&amp;lt; 
		Graph Builder(
			Size( 500, 350 ),
			Show Control Panel( 0 ),
			Show Legend( 0 ),
			Variables( X( As Column( dt, col_name_X ) ), Y( As Column( dt, col_name_Y)  )),
			Elements( Points( X, Y, Legend( 5 ) ) )
		));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 18:07:30 GMT</pubDate>
    <dc:creator>Heart_To_Tell</dc:creator>
    <dc:date>2023-06-09T18:07:30Z</dc:date>
    <item>
      <title>Lineup Box Skip row</title>
      <link>https://community.jmp.com/t5/Discussions/Lineup-Box-Skip-row/m-p/445181#M69313</link>
      <description>&lt;P&gt;I'm trying to skip a row of charts within the Lineup Box. For instance, instead of a 4x4 grid, I want 4 charts on the first row, 3 charts on the 2nd row, etc. Is there a way to skip a row or add a line break within the Lineup box?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();
//where dtLookup is the data table containing a list of X and Y columns to plot from dt

nw = New Window( "Outputs", lub = Lineup Box( N Col( 4 ) ) );

For Each Row(dtLookup,
	lub &amp;lt;&amp;lt; append(
		dt &amp;lt;&amp;lt; 
		Graph Builder(
			Size( 500, 350 ),
			Show Control Panel( 0 ),
			Show Legend( 0 ),
			Variables( X( As Column( dt, col_name_X ) ), Y( As Column( dt, col_name_Y)  )),
			Elements( Points( X, Y, Legend( 5 ) ) )
		));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:07:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Lineup-Box-Skip-row/m-p/445181#M69313</guid>
      <dc:creator>Heart_To_Tell</dc:creator>
      <dc:date>2023-06-09T18:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lineup Box Skip row</title>
      <link>https://community.jmp.com/t5/Discussions/Lineup-Box-Skip-row/m-p/445201#M69315</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not aware of a "Skip" function for the Lineup Box but there is a workaround that will need a bit of programming involving the insertion of Spacer Boxes (of the same size as your plot) for each slot you want to skip.&lt;/P&gt;
&lt;P&gt;However, it gets a bit tricky because you need to skip 0 slots for the first row, 1 slot for the second row, and 2 slots for the third row; you do not need to skip any slot for the last row.&lt;/P&gt;
&lt;P&gt;Apologies for the incomplete answer: I don't have the time to work on your script but you might be able to figure it out.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 06:02:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Lineup-Box-Skip-row/m-p/445201#M69315</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-12-15T06:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Lineup Box Skip row</title>
      <link>https://community.jmp.com/t5/Discussions/Lineup-Box-Skip-row/m-p/445203#M69316</link>
      <description>&lt;P&gt;If you know how you want to build the Lineup Boxes with specific column count you could maybe append the lineup box before appending new graphs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will break most likely fairly easily as it wants you to have exactly 10 (1+2+3+4) values in dtlookup (using list instead of datatable here).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

dtlookup = {"NPN1", "PNP1","PNP2","NPN2","PNP3","IVP1","PNP4","NPN3","IVP2","NPN4"};

lub_idx = 4;
ongoing_gb = lub_idx;

nw = New Window("Outputs", vlb = V List Box(lub = Lineup Box(N Col(lub_idx))));
For(i = 1, i &amp;lt;= N items(dtlookup), i++,
	If(ongoing_gb &amp;gt; 0,
		lub &amp;lt;&amp;lt; append(
			dt &amp;lt;&amp;lt; Graph Builder(
				Size(200, 150),
				Show Control Panel(0),
				Show Legend(0),
				Variables(X(As Column(dt, dtlookup[i])), Y(As Column(dt, "lot_id"))),
				Elements(Points(X, Y, Legend(5)))
			)
		);
		ongoing_gb--;
		,
		lub_idx = lub_idx - 1;
		ongoing_gb = lub_idx;
		vlb &amp;lt;&amp;lt; Append(lub = Lineup Box(N Col(lub_idx)));
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1639548294600.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38418i52DF390FAF5375CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1639548294600.png" alt="jthi_0-1639548294600.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or optionally you could use V List Box() and H List Box() and checking of indices.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 06:05:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Lineup-Box-Skip-row/m-p/445203#M69316</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-12-15T06:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lineup Box Skip row</title>
      <link>https://community.jmp.com/t5/Discussions/Lineup-Box-Skip-row/m-p/445204#M69317</link>
      <description>&lt;P&gt;Thank you so much. I ended up using your vlb addition to insert a "page break" based on parsed data from within the column name!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you once again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	col_name_Y  = Column(dtLookup, "Y")[i];
	col_name_X   = Column(dtLookup, "X")[i];
	col_name_X_next = Column(dtLookup, "X")[i+1];&lt;BR /&gt;    // col_name_X format = XXX YYY_ZZZ. The following word commands extracts YYY.
	rail= Word(1,Word(2,col_name_X," "),"_");
	rail_next = Word(1,Word(2,col_name_X_next," "),"_");
	if(rail!=rail_next,page_break =1,page_break=0);
	If(page_break == 0,
		lub &amp;lt;&amp;lt; append(
			dt &amp;lt;&amp;lt; Graph Builder(
				Size(500, 350),
				Show Control Panel(0),
				Show Legend(0),
				Variables( X( As Column( dt, col_name_X ) ), Y( As Column( dt, col_name_Y)  )),
				Elements(Points(X, Y, Legend(5)))
			)
		);
		,
		lub &amp;lt;&amp;lt; append(
			dt &amp;lt;&amp;lt; Graph Builder(
				Size(500, 350),
				Show Control Panel(0),
				Show Legend(0),
				Variables( X( As Column( dt, col_name_X ) ), Y( As Column( dt, col_name_Y)  )),
				Elements(Points(X, Y, Legend(5)))
			)
		);
		vlb &amp;lt;&amp;lt; Append(lub = Lineup Box(N Col(lub_idx)));
	)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Dec 2021 06:32:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Lineup-Box-Skip-row/m-p/445204#M69317</guid>
      <dc:creator>Heart_To_Tell</dc:creator>
      <dc:date>2021-12-15T06:32:40Z</dc:date>
    </item>
  </channel>
</rss>

