<?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 columns be plotted in graph builder be separated by PAGE using a column name categories? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712647#M89599</link>
    <description>&lt;P&gt;In your case I would then use associative array in which the key would be group name and values would be list of parameters (columns). Then loop over this associative array using For Each while building your journal&lt;/P&gt;</description>
    <pubDate>Wed, 27 Dec 2023 17:44:35 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-12-27T17:44:35Z</dc:date>
    <item>
      <title>Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712220#M89554</link>
      <description>&lt;P&gt;The script below plots a few columns (multiple parameters on Y axis) with column names starting with P in Graph Builder. I want to simultaneously plot a few other columns which&amp;nbsp;with column names starting with N in the next PAGE (command commented in my script below).&lt;/P&gt;&lt;P&gt;In the next PAGE I would like to plot a few other columns&amp;nbsp;with column names starting with, say&amp;nbsp; V and so on.&lt;/P&gt;&lt;P&gt;The column category information can come predefined either in a separate data table or in any other form, perhaps a list (I am flexible on that). The question is whether this is doable via JSL and if so how?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here (1);
clear log ();
dt = open( "$SAMPLE_DATA\semiconductor capability.jmp" ); 
dt &amp;lt;&amp;lt; Ungroup Columns();
Graph Builder(Size( 1469, 718 ),
	Variables(X( :lot_id ), Y( :PLG2 ), Y( :PNP4 ), Y( :PNP3 ), Y( :PNP2 ), Y( :PNP1 )),
	//Page(:ColumCategory)
	Elements( Position( 1, 1 ), Box Plot( X, Y, Legend( 14 ) ) ),
	Elements( Position( 1, 2 ), Box Plot( X, Y, Legend( 12 ) ) ),
	Elements( Position( 1, 3 ), Box Plot( X, Y, Legend( 11 ) ) ),
	Elements( Position( 1, 4 ), Box Plot( X, Y, Legend( 9 ) ) ),
	Elements( Position( 1, 5 ), Box Plot( X, Y, Legend( 10 ) ) ),
);&lt;/CODE&gt;&lt;/PRE&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;</description>
      <pubDate>Fri, 22 Dec 2023 16:22:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712220#M89554</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-12-22T16:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712233#M89555</link>
      <description>&lt;P&gt;Page is used for row based grouping, so it cannot be used for what you want to do. You could have a list of columns per each group, then loop over that list while appending separate graph builders to a new window with V List box for example.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 16:29:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712233#M89555</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-12-22T16:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712325#M89559</link>
      <description>&lt;P&gt;Even reformatting the data table doesn't help - the individual Y groups show all items:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1703320341266.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60080iBF2F6260680D62B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1703320341266.png" alt="hogi_1-1703320341266.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it's just about splitting the column subgroups, you could use&amp;nbsp;a &lt;STRONG&gt;Data Filter&lt;/STRONG&gt; instead of &lt;STRONG&gt;Page&lt;/STRONG&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="hogi_0-1703320222168.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60079iBC3AA2B5F93297FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1703320222168.png" alt="hogi_0-1703320222168.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;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here (1);
clear log ();
dt = open( "$SAMPLE_DATA\semiconductor capability.jmp" ); 
dt &amp;lt;&amp;lt; Ungroup Columns();
dtstacked = dt &amp;lt;&amp;lt; Stack(
	columns(
		:NPN1, :PNP1, :PNP2, :NPN2, :PNP3, :IVP1, :PNP4, :NPN3, :IVP2, :NPN4, :SIT1,
		:INM1, :INM2, :VPM1, :VPM2, :VPM3
	),
	Source Label Column( "Label" ),
	Stacked Data Column( "Data" ),
	"Non-stacked columns"n( Keep( :lot_id, :wafer, :Wafer ID in lot ID, :SITE ) )
);

dtstacked &amp;lt;&amp;lt; new column("first_Label",  Formula( Left( :Label, 1 ) ));

dtstacked &amp;lt;&amp;lt;  Graph Builder(
	Size( 571, 449 ),
	Show Control Panel( 0 ),
	Fit to Window,
	Variables(
		X( :lot_id ),
		Y( :Data ),
		Page( :first_Label ),
		Group Y( :Label ),
		Color( :Label )
	),
	Elements( Box Plot( X, Y, Legend( 16 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :first_Label ),
			Where( :first_Label == "N" ),
			Display( :first_Label, N Items( 5 ) )
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Dec 2023 08:34:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712325#M89559</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-12-23T08:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712382#M89571</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;OK. Thanks. An alternate idea would be to place/send the first graph builder window with a set of columns plotted to a journal window, the next set of new columns plotted under the first and so on and then close open graph windows and associated data tables. How to do this via JSL?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2023 12:48:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712382#M89571</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-12-24T12:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712391#M89572</link>
      <description>&lt;P&gt;Create list of lists which contain the columns you are interested in and loop over that while building graph builders and appending them to journal / v list box. Are all your columns same in size or does the amount of Y-axis change?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2023 17:13:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712391#M89572</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-12-24T17:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712392#M89573</link>
      <description>&lt;P&gt;Here is one option, but this isn't the only one you could use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

create_graph = Function({dt, ycollist}, {Default Local},
	vlb = V List Box(
		gb = dt &amp;lt;&amp;lt; Graph Builder(Variables(X(:lot_id)))
	);
	For Each({colname, idx}, ycollist,
		gb &amp;lt;&amp;lt; Add Variable({Eval(colname), Role("Y")});
		gb &amp;lt;&amp;lt; Add Element(1, idx, {Type("Box Plot"), X, Y}); // define boxplots
		gb &amp;lt;&amp;lt; Remove Element(1, idx, 1); // remove points
	);
	
	return(vlb);
);


my_groups = {{"PNP1", "PNP2", "PNP3"}, {"NPN3", "NPN2", "NPN1", "NPN4"}};


dt = Open("$SAMPLE_DATA\semiconductor capability.jmp");


// could also just create journal and add new_vlb to that
nw = New Window("Collector",
	vlb = V List Box()
);

For Each({my_group}, my_groups,
	new_vlb = create_graph(dt, my_group);
	vlb &amp;lt;&amp;lt; Append(new_vlb);
);

nw &amp;lt;&amp;lt; journal;
nw &amp;lt;&amp;lt; Close Window;
my_j = Current Journal();

Write();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Dec 2023 17:35:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712392#M89573</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-12-24T17:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712393#M89574</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Number of columns plotted on y-axis will be different for each case/group.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2023 23:31:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712393#M89574</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-12-24T23:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712394#M89575</link>
      <description>&lt;P&gt;If you have different columns for each case/group, you will need to add the JSL to change the value of "my_group" for each change.&lt;/P&gt;
&lt;P&gt;You probably can do that by adding an additional For Each() outside of the current For Each( {my_group), where you change the value of my_group before entering back into the current For Each().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest that you give that a try, and if you run into more issues to come back to the Community with more questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2023 20:47:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712394#M89575</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-12-24T20:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712609#M89595</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;Thanks.&lt;/P&gt;&lt;P&gt;My parameters to plot is grouped as in the following table. The aim is to append each group below the other in the journal. Also, I would like the group entry to be the chart title for each.&amp;nbsp; How to modify the above JSL in this case?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neo_0-1703689473566.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60100iD7F875832F943752/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neo_0-1703689473566.png" alt="Neo_0-1703689473566.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 15:16:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712609#M89595</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-12-27T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712647#M89599</link>
      <description>&lt;P&gt;In your case I would then use associative array in which the key would be group name and values would be list of parameters (columns). Then loop over this associative array using For Each while building your journal&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 17:44:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/712647#M89599</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-12-27T17:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713302#M89667</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;. Thanks for your suggestions. I am back on this topic after a short break.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Running this part of your script in my JMP 16.2&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
create_graph = Function({dt, ycollist}, {Default Local},
	vlb = V List Box(
		gb = dt &amp;lt;&amp;lt; Graph Builder(Variables(X(:lot_id)))
	);
	For Each({colname, idx}, ycollist,
		gb &amp;lt;&amp;lt; Add Variable({Eval(colname), Role("Y")});
		gb &amp;lt;&amp;lt; Add Element(1, idx, {Type("Box Plot"), X, Y}); // define boxplots
		gb &amp;lt;&amp;lt; Remove Element(1, idx, 1); // remove points
	);	
	return(vlb);
);
my_groups = {{"PNP1", "PNP2", "PNP3"}, {"NPN3", "NPN2", "NPN1", "NPN4"}};
dt = Open("$SAMPLE_DATA\semiconductor capability.jmp");
// could also just create journal and add new_vlb to that
nw = New Window("Collector",
	vlb = V List Box()
);
For Each({my_group}, my_groups,
	new_vlb = create_graph(dt, my_group);
	vlb &amp;lt;&amp;lt; Append(new_vlb);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;gives&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neo_0-1704275938100.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60156i9F44298AF0768E5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neo_0-1704275938100.png" alt="Neo_0-1704275938100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i.e.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;{"PNP1", "PNP2", "PNP3"} &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;{"NPN3", "NPN2", "NPN1", "NPN4"}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;are not plotted on the y-axis as mentioned in my first post (i.e. one above the other with spec limit ref lines visible) and on two separate charts.&lt;/P&gt;&lt;P&gt;As mentioned above, my parameters to plot are grouped as in the following separate table&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dtg = New Table( "Parameter Groups",
	Add Rows( 11 ),
	New Column( "Parameter", Character, Nominal, 
	Set Values( {"PNP1", "PNP2", "NPN2", "NPN3", "INV2", "NPN1", "PNP3", "NPN4", "INV3", "PNP6", "INV4"} ) ),
	New Column( "Group", Character, Nominal, Set Values( {"DC", "DC", "AC","AC","RF","AC","DC","AC", "RF", "DC", "RF"} ) )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I would like the parameters in each chart to be grouped by the entry in the Group column of the above table.&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp; the Top plot has a tile of &lt;EM&gt;DC&lt;/EM&gt; with&amp;nbsp;&lt;EM&gt;&lt;CODE class=" language-jsl"&gt;"PNP1", "PNP2",&amp;nbsp;"PNP3"&amp;nbsp;and&amp;nbsp;"PNP6"&lt;/CODE&gt;&lt;/EM&gt;&amp;nbsp;plotted on the y-axis and below it the next chart with title &lt;EM&gt;AC&lt;/EM&gt; with &lt;EM&gt;"NPN2", "NPN3", "NPN1"&lt;/EM&gt; and "NPN4" plotted and finally the third chart at the bottom with title &lt;EM&gt;"RF" &lt;/EM&gt;with&lt;EM&gt; "INV2" and "INV4&lt;/EM&gt;" plotted on the y-axis.&lt;/P&gt;&lt;P&gt;Could I please get some help with the associative array approach to proceed? This way I can get the unique &lt;EM&gt;Groups&lt;/EM&gt;, but how to get the associated &lt;EM&gt;Parameters (use Get Rows Where ())&lt;/EM&gt;?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gg  = Associative Array (dt:Group);
gg &amp;lt;&amp;lt; get keys;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;(&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;,&amp;nbsp;I prefer your "collector" window option in addition to the journal as it gives we more flexibility depending on what I want to look at)&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 11:44:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713302#M89667</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2024-01-03T11:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713308#M89668</link>
      <description>&lt;P&gt;Using JMP 16, I was able to recreate the issue you are seeing.&amp;nbsp; I failed in using the Add Variables, etc. to get the results you want.&amp;nbsp; However, by using a technique where the Graph Builder JSL is created in a string variable and then executed, I was able to get the box plots&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1704289573117.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60157i963743D5A280DF86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1704289573117.png" alt="txnelson_0-1704289573117.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

create_graph = Function( {dt, ycollist},
	{Default Local},
	theExpr =
	"vlb = V List Box(
		gb = dt &amp;lt;&amp;lt; Graph Builder(Size( 1469, 718 ),Variables(X(:lot_id)";
	
	For Each( {colname, idx}, ycollist,
		theExpr = theExpr || ",Y(:\!"" || colname || "\!"n)"
	);
	theExpr = theExpr || ")";
	For Each( {colname, idx}, ycollist,
		theExpr = theExpr || ",Elements( Position( 1," || Char( idx ) ||
		" ), Box Plot( X, Y) ) "
	);
	theExpr = theExpr || ");";
	Eval( Parse( theExpr ) );
	Return( vlb );
);
my_groups = {{"PNP1", "PNP2", "PNP3"}, {"NPN3", "NPN2", "NPN1", "NPN4"}};
dt = Open( "$SAMPLE_DATA\semiconductor capability.jmp" );
// could also just create journal and add new_vlb to that
nw = New Window( "Collector", vlb = V List Box() );
For Each( {my_group}, my_groups,
	new_vlb = create_graph( dt, my_group );
	vlb &amp;lt;&amp;lt; Append( new_vlb );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jan 2024 13:46:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713308#M89668</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-03T13:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713355#M89673</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;This works in 16.2 (JMP complains of syntax errors but still plots the chart).&lt;/P&gt;&lt;P&gt;How to break out of the &lt;EM&gt;create_graph&lt;/EM&gt; function if &lt;EM&gt;ycollist&lt;/EM&gt; is empty?&lt;/P&gt;&lt;P&gt;Also, if I have a another list&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;paraGroupList = {"DC", "AC"};&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How do I assign &lt;EM&gt;DC&lt;/EM&gt; as chart title (currently &lt;EM&gt;PNP1 &amp;amp; 2 more vs. lot_id&lt;/EM&gt;) when plotting (top chart)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;{"PNP1", "PNP2", "PNP3"}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and &lt;EM&gt;AC&lt;/EM&gt; as the chart title (currently &lt;EM&gt;NPN3 &amp;amp; 3 more vs. lot_id&lt;/EM&gt;) for when plotting (bottom chart)?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;{"NPN3", "NPN2", "NPN1", "NPN4"}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 16:18:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713355#M89673</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2024-01-03T16:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713374#M89675</link>
      <description>&lt;P&gt;Run the graph.&lt;/P&gt;
&lt;P&gt;Click on the title and change it.&lt;/P&gt;
&lt;P&gt;Then go to the red triangle and select to save the script.&lt;/P&gt;
&lt;P&gt;Look in the script and you will see the JSL and how it changed the title.&lt;/P&gt;
&lt;P&gt;Adopt it into your script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I strongly suggest that you take the time to read the Scripting Guide.&amp;nbsp; It will speed up your learning of JSL&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 16:17:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713374#M89675</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-03T16:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713378#M89677</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp; Thanks, I figured out how to do the chart title.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How to break out of the&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;create_graph&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;function if&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;ycollist&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;is empty?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 16:28:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713378#M89677</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2024-01-03T16:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713379#M89678</link>
      <description>&lt;P&gt;use the Length() function to check to see if the list has any entries, and then bypass the code;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 16:36:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713379#M89678</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-03T16:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713388#M89679</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;Thanks.&amp;nbsp; It seems I cannot use &lt;EM&gt;break ()&lt;/EM&gt;&amp;nbsp;within my plotting function if it is used inside a for loop. I will see what options I have.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 17:50:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713388#M89679</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2024-01-03T17:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713396#M89680</link>
      <description>&lt;P&gt;Just make the evaluation needed, and if it is not met, then bypass the code.&amp;nbsp; See Below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

create_graph = Function( {dt, ycollist},
	{Default Local},
	theExpr =
	"vlb = V List Box(
		gb = dt &amp;lt;&amp;lt; Graph Builder(Size( 1469, 718 ),Variables(X(:lot_id)";
	
	For Each( {colname, idx}, ycollist, 
	
		If( Length( colname ) != 0, 
	
			theExpr = theExpr || ",Y(:\!"" || colname || "\!"n)"
		);
		theExpr = theExpr || ")";
		For Each( {colname, idx}, ycollist,
			theExpr = theExpr || ",Elements( Position( 1," || Char( idx ) ||
			" ), Box Plot( X, Y) ) "
		);
		theExpr = theExpr || ");";
		Eval( Parse( theExpr ) );
	
	);
	
	Return( vlb );
);
my_groups = {{"PNP1", "PNP2", "PNP3"}, {"NPN3", "NPN2", "NPN1", "NPN4"}};
dt = Open( "$SAMPLE_DATA\semiconductor capability.jmp" );
// could also just create journal and add new_vlb to that
nw = New Window( "Collector", vlb = V List Box() );
For Each( {my_group}, my_groups,
	new_vlb = create_graph( dt, my_group );
	vlb &amp;lt;&amp;lt; Append( new_vlb );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jan 2024 19:21:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713396#M89680</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-03T19:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713564#M89702</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;Thanks. Running the script gives me errors (on JMP 16.2) which I am unable to get rid of.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neo_0-1704379900966.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60170i62A3555FD459F4EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neo_0-1704379900966.png" alt="Neo_0-1704379900966.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 15:31:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713564#M89702</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2024-01-04T15:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can columns be plotted in graph builder be separated by PAGE using a column name categories?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713605#M89708</link>
      <description>&lt;P&gt;Sorry, I rushed to my previous answer.&amp;nbsp; The below JSL will bypass the creation of the graph if the my_group is empty&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

create_graph = Function( {dt, ycollist},
	{Default Local}, 
	
	theExpr =
	"vlb = V List Box(
		gb = dt &amp;lt;&amp;lt; Graph Builder(Size( 1469, 718 ),Variables(X(:lot_id)";
	
	For Each( {colname, idx}, ycollist, 
	
		theExpr = theExpr || ",Y(:\!"" || colname || "\!"n)"
	);
	theExpr = theExpr || ")";
	For Each( {colname, idx}, ycollist, 
	
		theExpr = theExpr || ",Elements( Position( 1," || Char( idx ) ||
		" ), Box Plot( X, Y) ) "
	);
	theExpr = theExpr || ");";
	
	Eval( Parse( theExpr ) );
	
	Return( vlb );
);
my_groups = {{"PNP1", "PNP2", "PNP3"}, {"NPN3", "NPN2", "NPN1", "NPN4"}};
dt = Open( "$SAMPLE_DATA\semiconductor capability.jmp" );
// could also just create journal and add new_vlb to that
nw = New Window( "Collector", vlb = V List Box() );
For Each( {my_group}, my_groups,
	If( Length( my_group ) != 0,
		new_vlb = create_graph( dt, my_group );
		vlb &amp;lt;&amp;lt; Append( new_vlb );
		vlb = V List Box();
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jan 2024 17:38:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-columns-be-plotted-in-graph-builder-be-separated-by-PAGE/m-p/713605#M89708</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-04T17:38:17Z</dc:date>
    </item>
  </channel>
</rss>

