<?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: How would I Update a predetermined reference line in JSL Graph Builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-would-I-Update-a-predetermined-reference-line-in-JSL-Graph/m-p/737341#M91847</link>
    <description>&lt;P&gt;This helped!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still unsure how the original creator included an inherent value for the (seemingly) random reference names, but I just went the route of deleting the original reference names and typing in new ones - to the effect of exx/exy as examples. With new references that actually had "empty" values, IsEmpty worked with changing the proceeding values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;P&gt;Is there a specific need to use Drag Line and not just H Line / Line?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Since I just inherited the files and was told to update them, I'm not clear on the reasonings yet for everything. Personally, I don't like Drag Line so far (and can't figure out how to undo when accidentally dragging and changing a line). There's a good chance I'll be removing this from the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 19:33:47 GMT</pubDate>
    <dc:creator>OrderedJaguar</dc:creator>
    <dc:date>2024-03-21T19:33:47Z</dc:date>
    <item>
      <title>How would I Update a predetermined reference line in JSL Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-would-I-Update-a-predetermined-reference-line-in-JSL-Graph/m-p/737293#M91835</link>
      <description>&lt;P&gt;I'm new to JMP and scripting, and currently using JMP 17. I inherited a JMP file that has data and a script for visualizing (in line trends mostly) the data. I was asked to update the file with new data and get the trending aligned, but the script uses reference variables that seem to have built-in values (highlighted in red), since a set of values matching "[1, 2, 3] pops up when hovering over &lt;FONT color="#FF0000"&gt;xxy&lt;/FONT&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;"Graph Builder",
						FrameBox,
						{Add Graphics Script(
							3,
							Description( "+3SD" ),
							Line Style( 0 );
							Pen Color( "dark gray" );
							Pen Size( 2 );
							If( Is Empty( &lt;FONT color="#FF0000"&gt;xxy&lt;/FONT&gt; ),
								&lt;FONT color="#FF0000"&gt;xxy&lt;/FONT&gt; = [1, 2, 3];
								&lt;FONT color="#FF0000"&gt;yyz&lt;/FONT&gt; = [4, 5, 6];
							);
							Drag Line( &lt;FONT color="#FF0000"&gt;xxy, yyz&lt;/FONT&gt; );
						),&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Even if I change the values for [1, 2, 3] in the line that follows, the graph still shows the original reference line when the script runs. How would I go about updating the reference lines to incorporate the new data? I'm sure this problem stems from my lack of understanding the basics of scripting in JSL, but any help would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 17:05:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-would-I-Update-a-predetermined-reference-line-in-JSL-Graph/m-p/737293#M91835</guid>
      <dc:creator>OrderedJaguar</dc:creator>
      <dc:date>2024-03-21T17:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: How would I Update a predetermined reference line in JSL Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-would-I-Update-a-predetermined-reference-line-in-JSL-Graph/m-p/737321#M91840</link>
      <description>&lt;P&gt;Values seem to get updated just fine for me in this script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

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)))
);

Report(gb)[FrameBox(1)] &amp;lt;&amp;lt; Add Graphics Script(
	If(IsEmpty(exx) | Is Missing(exx),
		exx = [60 70 80];
		exy = [75 70 55];
	);
	Drag Line(
		exx, 
		exy		
	);
	show(exx, exy);
);	
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there a specific need to use Drag Line and not just H Line / Line?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 18:33:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-would-I-Update-a-predetermined-reference-line-in-JSL-Graph/m-p/737321#M91840</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-03-21T18:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: How would I Update a predetermined reference line in JSL Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-would-I-Update-a-predetermined-reference-line-in-JSL-Graph/m-p/737341#M91847</link>
      <description>&lt;P&gt;This helped!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still unsure how the original creator included an inherent value for the (seemingly) random reference names, but I just went the route of deleting the original reference names and typing in new ones - to the effect of exx/exy as examples. With new references that actually had "empty" values, IsEmpty worked with changing the proceeding values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;P&gt;Is there a specific need to use Drag Line and not just H Line / Line?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Since I just inherited the files and was told to update them, I'm not clear on the reasonings yet for everything. Personally, I don't like Drag Line so far (and can't figure out how to undo when accidentally dragging and changing a line). There's a good chance I'll be removing this from the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 19:33:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-would-I-Update-a-predetermined-reference-line-in-JSL-Graph/m-p/737341#M91847</guid>
      <dc:creator>OrderedJaguar</dc:creator>
      <dc:date>2024-03-21T19:33:47Z</dc:date>
    </item>
  </channel>
</rss>

