<?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: JSL &amp;gt; GraphBuilder &amp;gt; Multi-frame plots &amp;gt; Dynamic Text Annotation Issue in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-gt-GraphBuilder-gt-Multi-frame-plots-gt-Dynamic-Text/m-p/435620#M68485</link>
    <description>&lt;P&gt;If it is Eval(EvalExpr()) thing try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;	Eval(EvalExpr(locfr &amp;lt;&amp;lt; add graphics script(
		Text Size(8);
		Text Color(blue);
		Text(Center Justified, {4, -0.15}, Expr(a_fdr4));
		Text(Center Justified, {14, -0.15}, Expr(a_fdr14));
		Text Color(green);
		Text(Center Justified, {4, -0.2}, Expr(b_fdr4));
		Text(Center Justified, {14, -0.2}, Expr(b_fdr14));
	)));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;At least the values in customize graph seem to get updated and the values aren't same in each of the groups:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1636654039483.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37487iE171089226985BC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1636654039483.png" alt="jthi_0-1636654039483.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Nov 2021 18:08:28 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-11-11T18:08:28Z</dc:date>
    <item>
      <title>JSL &gt; GraphBuilder &gt; Multi-frame plots &gt; Dynamic Text Annotation Issue</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-gt-GraphBuilder-gt-Multi-frame-plots-gt-Dynamic-Text/m-p/435608#M68484</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;
&lt;P&gt;I have an apparently simple problem that I have not been able to resolve.&lt;/P&gt;
&lt;P&gt;In the script below, I am trying to add text annotations dynamically using the "Add Graphics Script" based on values extracted from the main data table (see attached). The issue is that the actual dynamic values across the multiple frames are all set to the last valid data extracted from the data table instead of being specifically associated with each frame. I suspect that I need to use a combination of "Eval Expr" and "Expr" to get the appropriate outcome but I have not been able to find the right syntax for this operation. All suggestions are welcome.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here (1);

dt = data table ("TS_DATA_TABLE_MOCK");

fdr_data = dt:FDR &amp;lt;&amp;lt; Get Values ();

show (fdr_data);

	gb = dt &amp;lt;&amp;lt; Graph Builder(
				Size( 832, 835 ),
				Fit to Window( "Off" ),
				Variables(
					X( :"DURATION (Week)"n ),
					Y( :LSMEAN ),
					Wrap( :M_ID ),
					Overlay( :ARM ),
					Interval( :STDERR )
				),
				Elements( Points( X, Y, Legend( 31 ) ), Line( X, Y, Legend( 32 ) ) ),
				SendToReport(
					Dispatch(
						{},
						"LSMEAN",
						ScaleBox,
						{Add Ref Line( 0, "Solid", "Gray", "", 2 )}
					),
					Dispatch(
						{},
						"400",
						ScaleBox,
						{Legend Model(
							31,
							Base( 0, 0, 0, Item ID( "A", 1 ) ),
							Base( 1, 0, 0, Item ID( "B", 1 ) )
						)}
					)
				)
			);

gbr = report (gb);

nfr = N items (gbr &amp;lt;&amp;lt; Xpath ("//FrameBox"));

For (i = 0, i &amp;lt;= nfr-2, i++,
	
	a_fdr4 = "fdr " || CHAR(Format(fdr_data [ (i*6) + 4], "PValue"));
	a_fdr14 = "fdr " || CHAR(Format(fdr_data [ (i*6) + 6], "PValue"));
	b_fdr4 = "fdr " || CHAR(Format(fdr_data [ (i*6) + 3], "PValue"));
	b_fdr14 = "fdr " || CHAR(Format(fdr_data [ (i*6) + 5], "PValue"));
	
	
	
	locfr = gbr [FrameBox (i+1)];
	locfr &amp;lt;&amp;lt; add graphics script (
			Text size (8);
			Text color (blue);
			Text (Center Justified, {4, -0.15}, a_fdr4);
			Text (Center Justified, {14, -0.15}, a_fdr14);
			Text color (green);
			Text (Center Justified, {4, -0.2}, b_fdr4);
			Text (Center Justified, {14, -0.2}, b_fdr14);
	);
	
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Of note, this is a portion of a larger script that selects specific rows to plot in this format.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:19:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-gt-GraphBuilder-gt-Multi-frame-plots-gt-Dynamic-Text/m-p/435608#M68484</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2023-06-11T11:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: JSL &gt; GraphBuilder &gt; Multi-frame plots &gt; Dynamic Text Annotation Issue</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-gt-GraphBuilder-gt-Multi-frame-plots-gt-Dynamic-Text/m-p/435620#M68485</link>
      <description>&lt;P&gt;If it is Eval(EvalExpr()) thing try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;	Eval(EvalExpr(locfr &amp;lt;&amp;lt; add graphics script(
		Text Size(8);
		Text Color(blue);
		Text(Center Justified, {4, -0.15}, Expr(a_fdr4));
		Text(Center Justified, {14, -0.15}, Expr(a_fdr14));
		Text Color(green);
		Text(Center Justified, {4, -0.2}, Expr(b_fdr4));
		Text(Center Justified, {14, -0.2}, Expr(b_fdr14));
	)));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;At least the values in customize graph seem to get updated and the values aren't same in each of the groups:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1636654039483.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37487iE171089226985BC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1636654039483.png" alt="jthi_0-1636654039483.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 18:08:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-gt-GraphBuilder-gt-Multi-frame-plots-gt-Dynamic-Text/m-p/435620#M68485</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-11-11T18:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: JSL &gt; GraphBuilder &gt; Multi-frame plots &gt; Dynamic Text Annotation Issue</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-gt-GraphBuilder-gt-Multi-frame-plots-gt-Dynamic-Text/m-p/435632#M68486</link>
      <description>&lt;P&gt;Hi jthi,&lt;/P&gt;
&lt;P&gt;Brilliant, as always. I am still struggling with the construct with Eval / Eval Expr / Expr.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 18:15:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-gt-GraphBuilder-gt-Multi-frame-plots-gt-Dynamic-Text/m-p/435632#M68486</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-11-11T18:15:51Z</dc:date>
    </item>
  </channel>
</rss>

