<?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 Show Legend on each graph on builder when using Page in JMP Scripters Club Discussions</title>
    <link>https://community.jmp.com/t5/JMP-Scripters-Club-Discussions/Show-Legend-on-each-graph-on-builder-when-using-Page/m-p/547432#M70</link>
    <description>&lt;P&gt;This was asked today at least in chat. Below are couple of possible options on how to handle this (I also posted this to wishlist as suggestion&lt;LI-MESSAGE title="Add option to extend Graph Builders legend to each page when Page is being used" uid="547425" url="https://community.jmp.com/t5/JMP-Wish-List/Add-option-to-extend-Graph-Builders-legend-to-each-page-when/m-p/547425#U547425" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; )&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Probe.jmp");

// Use XPatH() and Picture Box with legend
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Show Control Panel(0),
	Size(500, 9760),
	Variables(X(:DELW_NEMIT), Y(:DELL_RPNBR), Page(:Wafer Number), Color(:Process)),
	Elements(Points(X, Y, Legend(5)))
);

lg = (gb &amp;lt;&amp;lt; XPath("//LegendBox"))[1];
lg_pic = lg &amp;lt;&amp;lt; get picture;

fbs = (gb &amp;lt;&amp;lt; XPath("//FrameBox")) &amp;lt;&amp;lt; parent;
Remove From(fbs, 1); // first one already has "real" legend
//margins will need to be adjusted depending on GB size
fbs &amp;lt;&amp;lt; append(Picture Box(lg_pic, &amp;lt;&amp;lt; Margin(Left((gb &amp;lt;&amp;lt; get size)[1]-130), Top(-15), Right(0), Bottom(0))));


// Loop over groups one by one while using Where()
nw = New Window("GBs",
	lub = Lineup Box(N Col(1));
);
Summarize(dt, pages = by(:Wafer Number));

For Each({page}, pages,
	gb_page_expr = Expr(
		Eval(EvalExpr(gb = dt &amp;lt;&amp;lt; Graph Builder(
			Show Control Panel(0),
			Size(500, 500),
			Variables(X(:DELW_NEMIT), Y(:DELL_RPNBR), Color(:Process), Group X(:Wafer Number)),
			Elements(Points(X, Y, Legend(5))),
			Where(:Wafer Number == Expr(page))
		)));
	);
	lub &amp;lt;&amp;lt; Append(gb_page_expr);
	// gb &amp;lt;&amp;lt; Title("");
);
((lub &amp;lt;&amp;lt; Top Parent) &amp;lt;&amp;lt; XPath("//TextBox[contains(text(), 'Where(:')]")) &amp;lt;&amp;lt; Visibility("Collapse");


// most likely best idea, use By()
gbs = Graph Builder(
	Size(534, 456),
	Show Control Panel(0),
	Variables(X(:DELW_NEMIT), Y(:DELL_RPNBR), Color(:Process)),
	Elements(Points(X, Y, Legend(1))),
	By(:Wafer Number)
);

Write();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 21 Sep 2022 16:28:09 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-09-21T16:28:09Z</dc:date>
    <item>
      <title>Show Legend on each graph on builder when using Page</title>
      <link>https://community.jmp.com/t5/JMP-Scripters-Club-Discussions/Show-Legend-on-each-graph-on-builder-when-using-Page/m-p/547432#M70</link>
      <description>&lt;P&gt;This was asked today at least in chat. Below are couple of possible options on how to handle this (I also posted this to wishlist as suggestion&lt;LI-MESSAGE title="Add option to extend Graph Builders legend to each page when Page is being used" uid="547425" url="https://community.jmp.com/t5/JMP-Wish-List/Add-option-to-extend-Graph-Builders-legend-to-each-page-when/m-p/547425#U547425" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; )&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Probe.jmp");

// Use XPatH() and Picture Box with legend
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Show Control Panel(0),
	Size(500, 9760),
	Variables(X(:DELW_NEMIT), Y(:DELL_RPNBR), Page(:Wafer Number), Color(:Process)),
	Elements(Points(X, Y, Legend(5)))
);

lg = (gb &amp;lt;&amp;lt; XPath("//LegendBox"))[1];
lg_pic = lg &amp;lt;&amp;lt; get picture;

fbs = (gb &amp;lt;&amp;lt; XPath("//FrameBox")) &amp;lt;&amp;lt; parent;
Remove From(fbs, 1); // first one already has "real" legend
//margins will need to be adjusted depending on GB size
fbs &amp;lt;&amp;lt; append(Picture Box(lg_pic, &amp;lt;&amp;lt; Margin(Left((gb &amp;lt;&amp;lt; get size)[1]-130), Top(-15), Right(0), Bottom(0))));


// Loop over groups one by one while using Where()
nw = New Window("GBs",
	lub = Lineup Box(N Col(1));
);
Summarize(dt, pages = by(:Wafer Number));

For Each({page}, pages,
	gb_page_expr = Expr(
		Eval(EvalExpr(gb = dt &amp;lt;&amp;lt; Graph Builder(
			Show Control Panel(0),
			Size(500, 500),
			Variables(X(:DELW_NEMIT), Y(:DELL_RPNBR), Color(:Process), Group X(:Wafer Number)),
			Elements(Points(X, Y, Legend(5))),
			Where(:Wafer Number == Expr(page))
		)));
	);
	lub &amp;lt;&amp;lt; Append(gb_page_expr);
	// gb &amp;lt;&amp;lt; Title("");
);
((lub &amp;lt;&amp;lt; Top Parent) &amp;lt;&amp;lt; XPath("//TextBox[contains(text(), 'Where(:')]")) &amp;lt;&amp;lt; Visibility("Collapse");


// most likely best idea, use By()
gbs = Graph Builder(
	Size(534, 456),
	Show Control Panel(0),
	Variables(X(:DELW_NEMIT), Y(:DELL_RPNBR), Color(:Process)),
	Elements(Points(X, Y, Legend(1))),
	By(:Wafer Number)
);

Write();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Sep 2022 16:28:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/JMP-Scripters-Club-Discussions/Show-Legend-on-each-graph-on-builder-when-using-Page/m-p/547432#M70</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-09-21T16:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Show Legend on each graph on builder when using Page</title>
      <link>https://community.jmp.com/t5/JMP-Scripters-Club-Discussions/Show-Legend-on-each-graph-on-builder-when-using-Page/m-p/547484#M71</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2742"&gt;@martindemel&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&amp;gt; // most likely best idea, use By()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works.&lt;/P&gt;&lt;P&gt;But how to guess there is BY function on Graph Builder, where can it be found in the Graph Builder's Control Panel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My regular use case mostly has a wrap included, like this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;gbs = Graph Builder(
	Size(534, 456),
	Show Control Panel(0),
	Variables(X(:DELW_NEMIT), Y(:DELL_RPNBR), Wrap( :Die X ), Color(:Process)),
	Elements(Points(X, Y, Legend(1))),
	By(:Wafer Number)
);&lt;/LI-CODE&gt;&lt;P&gt;and the scripted BY() still works.&lt;/P&gt;&lt;P&gt;But I don't see how I can produce this from Graph Builder interface alone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 19:38:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/JMP-Scripters-Club-Discussions/Show-Legend-on-each-graph-on-builder-when-using-Page/m-p/547484#M71</guid>
      <dc:creator>glimond67</dc:creator>
      <dc:date>2022-09-21T19:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Show Legend on each graph on builder when using Page</title>
      <link>https://community.jmp.com/t5/JMP-Scripters-Club-Discussions/Show-Legend-on-each-graph-on-builder-when-using-Page/m-p/547498#M72</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/27726"&gt;@glimond67&lt;/a&gt; there are two options:&lt;/P&gt;
&lt;P&gt;use Dialog button (julian demonstrates it here &lt;A href="https://community.jmp.com/t5/Discussions/Repeat-legend-with-every-page/m-p/47610/highlight/true#M27143" target="_blank" rel="noopener"&gt; Re: Repeat legend with every page&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1663789817887.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45669i3816E5F9540AC384/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1663789817887.png" alt="jthi_2-1663789817887.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;go to red triangle -&amp;gt; Redo / Relaunch Analysis&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1663789641847.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45667iC186B57A9E035467/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1663789641847.png" alt="jthi_0-1663789641847.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This will open platform menu you can fill (and if you had something already filled those will be kept)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1663789674307.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45668iCA1734F62B11736A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1663789674307.png" alt="jthi_1-1663789674307.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 15:54:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/JMP-Scripters-Club-Discussions/Show-Legend-on-each-graph-on-builder-when-using-Page/m-p/547498#M72</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-09-22T15:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Show Legend on each graph on builder when using Page</title>
      <link>https://community.jmp.com/t5/JMP-Scripters-Club-Discussions/Show-Legend-on-each-graph-on-builder-when-using-Page/m-p/698993#M110</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;! It solved my problem&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 01:21:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/JMP-Scripters-Club-Discussions/Show-Legend-on-each-graph-on-builder-when-using-Page/m-p/698993#M110</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2023-11-16T01:21:02Z</dc:date>
    </item>
  </channel>
</rss>

