<?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 GraphBuilder &amp;gt; FrameBox &amp;lt;&amp;lt; Add Graphics Script (V Line (x,y1,y2)): dynamically assign x, y1, and y2? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/GraphBuilder-gt-FrameBox-lt-lt-Add-Graphics-Script-V-Line-x-y1/m-p/366991#M61692</link>
    <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;
&lt;P&gt;It's my turn to be stumped by an apparently trivial project.&lt;/P&gt;
&lt;P&gt;I'm trying to dynamically add V Lines to a Graph Builder plot and I'm getting rather unexpected results with the test script below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here (1);

dt = New Table ("TEST", 
	New Column ("X", Set Values ([1,2,3,4,5])),
	New Column ("Y", Set Values ([3,2,5,8,6]))
		
);

gb = dt &amp;lt;&amp;lt; Graph Builder(
			Fit to Window( "Off" ),
			Level Frame Color( "Medium Dark Gray" ),
			Level Spacing Color( "Medium Dark Gray" ),
			Level Underline( 1 ),
			Page Level Underline( 0 ),
			Spacing Borders( 1 ),
			Variables( X( :X ), Y( :Y ) ),
			Elements( Points( X, Y, Legend( 5 ) ) )
			);

gbr = gb &amp;lt;&amp;lt; report;


Ypos1 = 2;
Ypos2 = 6;

For (i = 1, i&amp;lt;=5, i++,
		
				Xpos = i;
				
				gbr [Framebox (1)] &amp;lt;&amp;lt; Add graphics Script (
	
					Pen color (Green);
					V Line (1,4,6);	
					Pen color (Red);
					V Line (Xpos, Ypos1, Ypos2);
					Pen color (blue);
					V Line (i, 6,8);
	
				)
);	&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get the green V Line correctly placed, I get one red V Line positioned at X = 5, and no blue line.&lt;/P&gt;
&lt;P&gt;I tried adding Eval Expr (Expr()) for the entire expression and within the graphic script without success, so I'm sure that there is a simple solution that is escaping me at this late hour.&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:11:56 GMT</pubDate>
    <dc:creator>Thierry_S</dc:creator>
    <dc:date>2023-06-11T11:11:56Z</dc:date>
    <item>
      <title>GraphBuilder &gt; FrameBox &lt;&lt; Add Graphics Script (V Line (x,y1,y2)): dynamically assign x, y1, and y2?</title>
      <link>https://community.jmp.com/t5/Discussions/GraphBuilder-gt-FrameBox-lt-lt-Add-Graphics-Script-V-Line-x-y1/m-p/366991#M61692</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;
&lt;P&gt;It's my turn to be stumped by an apparently trivial project.&lt;/P&gt;
&lt;P&gt;I'm trying to dynamically add V Lines to a Graph Builder plot and I'm getting rather unexpected results with the test script below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here (1);

dt = New Table ("TEST", 
	New Column ("X", Set Values ([1,2,3,4,5])),
	New Column ("Y", Set Values ([3,2,5,8,6]))
		
);

gb = dt &amp;lt;&amp;lt; Graph Builder(
			Fit to Window( "Off" ),
			Level Frame Color( "Medium Dark Gray" ),
			Level Spacing Color( "Medium Dark Gray" ),
			Level Underline( 1 ),
			Page Level Underline( 0 ),
			Spacing Borders( 1 ),
			Variables( X( :X ), Y( :Y ) ),
			Elements( Points( X, Y, Legend( 5 ) ) )
			);

gbr = gb &amp;lt;&amp;lt; report;


Ypos1 = 2;
Ypos2 = 6;

For (i = 1, i&amp;lt;=5, i++,
		
				Xpos = i;
				
				gbr [Framebox (1)] &amp;lt;&amp;lt; Add graphics Script (
	
					Pen color (Green);
					V Line (1,4,6);	
					Pen color (Red);
					V Line (Xpos, Ypos1, Ypos2);
					Pen color (blue);
					V Line (i, 6,8);
	
				)
);	&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get the green V Line correctly placed, I get one red V Line positioned at X = 5, and no blue line.&lt;/P&gt;
&lt;P&gt;I tried adding Eval Expr (Expr()) for the entire expression and within the graphic script without success, so I'm sure that there is a simple solution that is escaping me at this late hour.&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:11:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/GraphBuilder-gt-FrameBox-lt-lt-Add-Graphics-Script-V-Line-x-y1/m-p/366991#M61692</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2023-06-11T11:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: GraphBuilder &gt; FrameBox &lt;&lt; Add Graphics Script (V Line (x,y1,y2)): dynamically assign x, y1, and y2?</title>
      <link>https://community.jmp.com/t5/Discussions/GraphBuilder-gt-FrameBox-lt-lt-Add-Graphics-Script-V-Line-x-y1/m-p/367005#M61694</link>
      <description>&lt;P&gt;I seem to be able to get blue lines with eval(evalexpr(:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval(EvalExpr(gbr [Framebox (1)] &amp;lt;&amp;lt; Add graphics Script (

	Pen color (Green);
	V Line (1,4,6);	
	Pen color (Red);
	V Line (Xpos, Ypos1, Ypos2);
	Pen color (Blue);
	V Line (Expr(i), 6,8);

)))&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-1615453483308.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31159iBAB31ACF49EAB90B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1615453483308.png" alt="jthi_0-1615453483308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using JMP15.2.1&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 09:06:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/GraphBuilder-gt-FrameBox-lt-lt-Add-Graphics-Script-V-Line-x-y1/m-p/367005#M61694</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-03-11T09:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: GraphBuilder &gt; FrameBox &lt;&lt; Add Graphics Script (V Line (x,y1,y2)): dynamically assign x, y1, and y2?</title>
      <link>https://community.jmp.com/t5/Discussions/GraphBuilder-gt-FrameBox-lt-lt-Add-Graphics-Script-V-Line-x-y1/m-p/367014#M61696</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For (i = 1, i&amp;lt;=5, i++,
		
				Xpos = i;
				
				Eval(EvalExpr(gbr [Framebox (1)] &amp;lt;&amp;lt; Add graphics Script (
	
					Pen color (Green);
					V Line (1,4,6);	
					Pen color (Red);
					V Line (expr(Xpos), expr(Ypos1), expr(Ypos2));
					Pen color (blue);
					V Line (expr(i), 6,8);
	
				)))
);	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pauldeen_0-1615457793746.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31161i9B0EF3BFEFB9D2D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pauldeen_0-1615457793746.png" alt="pauldeen_0-1615457793746.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 10:16:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/GraphBuilder-gt-FrameBox-lt-lt-Add-Graphics-Script-V-Line-x-y1/m-p/367014#M61696</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2021-03-11T10:16:43Z</dc:date>
    </item>
  </channel>
</rss>

