<?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 can I get my graphing script to reference my row-wise control limits and add them automatically to my graph? WIP script included in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924281#M108249</link>
    <description>&lt;P&gt;You just need to add the UCL and LCL to the Y axis and then add a line, specifying that Value is the only variable to be used for the points and that LCL and UCL are the only variables to be used for the lines&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1768519864213.png" style="width: 664px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/91156iCC831A2C4AD8D41A/image-dimensions/664x574?v=v2" width="664" height="574" role="button" title="txnelson_0-1768519864213.png" alt="txnelson_0-1768519864213.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Graph Builder(
	Size( 633, 6849 ),
	Show Control Panel( 0 ),
	Title Fill Color( "White" ),
	Level Fill Color( "White" ),
	Page Level Fill Color( "White" ),
	Variables(
		X( :Tool ),
		Y( :Value ),
		Y( :UCL, Position( 1 ) ),
		Y( :LCL, Position( 1 ) ),
		Page( :Layer )
	),
	Elements(
		Points( X, Y( 1 ), Legend( 1 ) ),
		Line( X, Y( 2 ), Y( 3 ), Legend( 2 ) )
	),
	SendToReport(
		Dispatch( {}, "Graph Builder", FrameBox,
			{Marker Size( 2 ), Marker Drawing Mode( "Normal" )}
		)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 15 Jan 2026 23:31:31 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2026-01-15T23:31:31Z</dc:date>
    <item>
      <title>How can I get my graphing script to reference my row-wise control limits and add them automatically to my graph? WIP script included</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924249#M108242</link>
      <description>&lt;P&gt;Hi there! I am working on creating a script that graphs&lt;SPAN&gt;&amp;nbsp;a numerical value (X) against Tools (Y) that includes given upper and lower control limits in the data table that vary by subgroup, and will automatically include the limits on the graphs when the script is run. I also need these graphs to be separated by "Layer". Here is what I have so far. I can get the graphs to generate, but I can't seem to get the control limit lines to show up. Also, the first graph has much smaller point sizes than the rest of the graphs. I'm still relatively new to writing scripts from scratch, so any help is much appreciated! Here is what I have so far. (JMP version: 17.2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
 
xCol = Column( dt, "Tool" );
yCol = Column( dt, "Value" );
uclCol = Column( dt, "UCL" );
lclCol = Column( dt, "LCL" );
LayerCol = Column( dt, "Layer" );
 
gb = Graph Builder(
	Size( 633, 6849 ),
	Show Control Panel( 0 ),
	Title Fill Color( "White" ),
	Level Fill Color( "White" ),
	Page Level Fill Color( "White" ),
	Variables( X( :Tool ), Y( :Value ), Page( :Layer ) ),
	Elements( Points( X, Y, Legend( 1 ) ) ),
	Elements( Line( X( xCol ), Y( uclCol ), Legend( 2 ) ) ),
	Elements( Line( X( xCol ), Y( lclCol ), Legend( 3 ) ) ), 
 
	SendToReport(
		Dispatch( {}, "Graph", ScaleBox, {Format( "Best", 12 ), Inc( 1 ), Minor Ticks( 1 )} ),
		Dispatch( {}, "Graph Builder", FrameBox, {Marker Size( 2 ), Line Width( 2 )} ), 
   
	)
);
 
 
rep = gb &amp;lt;&amp;lt; Report();
fr = rep[FrameBox( 1 )];
leg = rep[LegendBox( 1 )];
leg = rep[Legend Box( 1 )];
 
Try( leg &amp;lt;&amp;lt; Set Item Name( 1, "Value" ) );
Try( leg &amp;lt;&amp;lt; Set Item Color( 1, "Steel Blue" ) );
Try( fr &amp;lt;&amp;lt; Set Marker Size( 1, 3 ) );
Try( fr &amp;lt;&amp;lt; Set Marker Style( 1, "FilledCircle" ) );
Try( leg &amp;lt;&amp;lt; Set Item Name( 2, "UCL" ) );
Try( leg &amp;lt;&amp;lt; Set Item Name( 3, "LCL" ) );
Try( leg &amp;lt;&amp;lt; Set Item Color( 2, "Red" ) );
Try( leg &amp;lt;&amp;lt; Set Item Color( 3, "Red" ) );
Try( leg &amp;lt;&amp;lt; Set Item Line Style( 2, "Solid" ) );
Try( leg &amp;lt;&amp;lt; Set Item Line Style( 3, "Solid" ) );
Try( fr &amp;lt;&amp;lt; Set Line Width( 2, 2 ) );       // UCL
Try( fr &amp;lt;&amp;lt; Set Line Width( 3, 2 ) );       // LCL
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Edited by txnelson JSL into JSL Display Box&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Jan 2026 22:10:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924249#M108242</guid>
      <dc:creator>cmarsh26</dc:creator>
      <dc:date>2026-01-15T22:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get my graphing script to reference my row-wise control limits and add them automatically to my graph? WIP script included</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924261#M108243</link>
      <description>&lt;P&gt;If you generate the graph you want using the interactive capabilities of Graph Builder, you can then simply specify to save the script, and it will generate a script that will replicate the graph.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 22:18:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924261#M108243</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2026-01-15T22:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get my graphing script to reference my row-wise control limits and add them automatically to my graph? WIP script included</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924272#M108245</link>
      <description>&lt;P&gt;Hi Jim, thank you for your reply! I was able to get the graphs to generate, but the biggest issue I'm running into now is that I still can't figure out how to add in the UCL and LCL reference lines into my script so that when it's run, the graphs are separated by layer and each graph has its respective LCL and UCL reference lines included on it. The UCL and LCL are columns in my data table, just can't seem to figure out the correct way to reference them.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 22:36:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924272#M108245</guid>
      <dc:creator>cmarsh26</dc:creator>
      <dc:date>2026-01-15T22:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get my graphing script to reference my row-wise control limits and add them automatically to my graph? WIP script included</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924276#M108246</link>
      <description>&lt;P&gt;Can you attach a sample file?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 22:55:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924276#M108246</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2026-01-15T22:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get my graphing script to reference my row-wise control limits and add them automatically to my graph? WIP script included</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924277#M108247</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;
&lt;P&gt;Data table attached, with the original script I pasted above in the table scripts section.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 23:06:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924277#M108247</guid>
      <dc:creator>cmarsh26</dc:creator>
      <dc:date>2026-01-15T23:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get my graphing script to reference my row-wise control limits and add them automatically to my graph? WIP script included</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924281#M108249</link>
      <description>&lt;P&gt;You just need to add the UCL and LCL to the Y axis and then add a line, specifying that Value is the only variable to be used for the points and that LCL and UCL are the only variables to be used for the lines&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1768519864213.png" style="width: 664px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/91156iCC831A2C4AD8D41A/image-dimensions/664x574?v=v2" width="664" height="574" role="button" title="txnelson_0-1768519864213.png" alt="txnelson_0-1768519864213.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Graph Builder(
	Size( 633, 6849 ),
	Show Control Panel( 0 ),
	Title Fill Color( "White" ),
	Level Fill Color( "White" ),
	Page Level Fill Color( "White" ),
	Variables(
		X( :Tool ),
		Y( :Value ),
		Y( :UCL, Position( 1 ) ),
		Y( :LCL, Position( 1 ) ),
		Page( :Layer )
	),
	Elements(
		Points( X, Y( 1 ), Legend( 1 ) ),
		Line( X, Y( 2 ), Y( 3 ), Legend( 2 ) )
	),
	SendToReport(
		Dispatch( {}, "Graph Builder", FrameBox,
			{Marker Size( 2 ), Marker Drawing Mode( "Normal" )}
		)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Jan 2026 23:31:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924281#M108249</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2026-01-15T23:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get my graphing script to reference my row-wise control limits and add them automatically to my graph? WIP script included</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924282#M108250</link>
      <description>&lt;P&gt;Got it, this worked! Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2026 00:06:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-get-my-graphing-script-to-reference-my-row-wise/m-p/924282#M108250</guid>
      <dc:creator>cmarsh26</dc:creator>
      <dc:date>2026-01-16T00:06:25Z</dc:date>
    </item>
  </channel>
</rss>

