<?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 in JSL] how to select graph build as an object in one Lineup Box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-in-JSL-how-to-select-graph-build-as-an-object-in/m-p/819366#M99743</link>
    <description>&lt;P&gt;Hello jthi,&lt;/P&gt;&lt;P&gt;It works, really appreciate it!&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2024 01:34:02 GMT</pubDate>
    <dc:creator>Clanlope</dc:creator>
    <dc:date>2024-11-27T01:34:02Z</dc:date>
    <item>
      <title>[Graph Builder in JSL] how to select graph build as an object in one Lineup Box</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-in-JSL-how-to-select-graph-build-as-an-object-in/m-p/819252#M99736</link>
      <description>&lt;P&gt;Hi, currently I created a lineup box with several graphs like 3 in it, and after the window popped out, I want to select each the graph by xpath then do some actions like sizing or adding ref line..&lt;BR /&gt;&lt;BR /&gt;However I found that I am not able to use a for loop to individually select the graphs in my lineup box, what should I do? thanks!&lt;/P&gt;&lt;P&gt;(I tried to use gb1 = Graph Builder 1; gb2 = Graph Builder 2; gb3 = ... but I don't think it is an effective way.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NW = New Window("GRA", LB = Lineup Box(N Col( 2 )));

LB &amp;lt;&amp;lt; Append(
Graph Builder(
		Variables(X,Y...
Graph Builder(
		Variables(X,Y...
Graph Builder(
		Variables(X,Y...
);
TotalGB = LB &amp;lt;&amp;lt; xpath("//LineUpBox/Box");  # This is wrong for selecting graph object #
For( ii = 1, ii &amp;lt;= N Items(TotalGB), ii++,
	TotalGB[ii] &amp;lt;&amp;lt; Size( 800, 500 );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2024 12:33:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-in-JSL-how-to-select-graph-build-as-an-object-in/m-p/819252#M99736</guid>
      <dc:creator>Clanlope</dc:creator>
      <dc:date>2024-11-26T12:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: [Graph Builder in JSL] how to select graph build as an object in one Lineup Box</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-in-JSL-how-to-select-graph-build-as-an-object-in/m-p/819306#M99737</link>
      <description>&lt;P&gt;If you are adding them this way, you could create the references while appending them (collect them into a list and not separate variables). If you wish to use XPath you can do something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

nw = New Window("", lub = Lineup Box());

lub &amp;lt;&amp;lt; Append(
	gb = dt &amp;lt;&amp;lt; Graph Builder(
		Variables(X(:weight), Y(:height), Overlay(:sex)),
		Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
	)
);
lub &amp;lt;&amp;lt; Append(
	gb = dt &amp;lt;&amp;lt; Graph Builder(
		Variables(X(:weight), Y(:height), Overlay(:sex)),
		Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
	)
);


gbs = (lub &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey = 'Graph Builder']")) &amp;lt;&amp;lt; get scriptable object;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;without XPath for example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

nw = New Window("", lub = Lineup Box());

gbs = {};
lub &amp;lt;&amp;lt; Append(
	gb = dt &amp;lt;&amp;lt; Graph Builder(
		Variables(X(:weight), Y(:height), Overlay(:sex)),
		Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
	)
);
Insert Into(gbs, gb);
lub &amp;lt;&amp;lt; Append(
	gb = dt &amp;lt;&amp;lt; Graph Builder(
		Variables(X(:weight), Y(:height), Overlay(:sex)),
		Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
	)
);
Insert Into(gbs, gb);

show(gbs);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2024 16:08:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-in-JSL-how-to-select-graph-build-as-an-object-in/m-p/819306#M99737</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-11-26T16:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: [Graph Builder in JSL] how to select graph build as an object in one Lineup Box</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-in-JSL-how-to-select-graph-build-as-an-object-in/m-p/819366#M99743</link>
      <description>&lt;P&gt;Hello jthi,&lt;/P&gt;&lt;P&gt;It works, really appreciate it!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 01:34:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-in-JSL-how-to-select-graph-build-as-an-object-in/m-p/819366#M99743</guid>
      <dc:creator>Clanlope</dc:creator>
      <dc:date>2024-11-27T01:34:02Z</dc:date>
    </item>
  </channel>
</rss>

