<?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: graph with different target or spec limits in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/200304#M41698</link>
    <description>&lt;P&gt;You could use a graphics script. In the sample case, find 'HLine()' in 'Help &amp;gt; Scripting Index'. For eaxmple:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-05-02 at 14.39.05.png" style="width: 537px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17086i70EEF13D4DB4A60D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-05-02 at 14.39.05.png" alt="Screen Shot 2019-05-02 at 14.39.05.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;is created by this JSL:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
						Size( 529, 453 ),
						Show Control Panel( 0 ),
						Show Legend( 0 ),
						Variables( X( :weight ), Y( :height ) ),
						Elements( Points( X, Y, Legend( 6 ) ), Smoother( X, Y, Legend( 7 ) ) ),
						SendToReport(
							Dispatch(
								{},
								"Graph Builder",
								FrameBox,
								{Add Graphics Script(
									1,
									Description( "LowerSpec" ),
									Pen Color( "Red" );
									H Line( 100, 140, 60 );
								), Add Graphics Script(
									3,
									Description( "UpperSpec" ),
									Pen Color( "Red" );
									H Line( 100, 140, 67 );
								), Grid Line Order( 2 ), Reference Line Order( 4 )}
							)
						)
					);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Once you have the plot, right click on the graphics box and select 'Customize...'.&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2019 13:44:16 GMT</pubDate>
    <dc:creator>ian_jmp</dc:creator>
    <dc:date>2019-05-02T13:44:16Z</dc:date>
    <item>
      <title>graph with different target or spec limits</title>
      <link>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/200283#M41697</link>
      <description>&lt;P&gt;I have looked over some of the discussion regarding this matter but i have only found things that deal with shadding of a range..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am seeking some help with just adding lines (see picture). Those lines represent the upper and lower spec limits (Y Axis) and the start and end points of the screening criteria (X Axis)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank You&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Plot With Spec Lines.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17085i6495CA135B3829DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Plot With Spec Lines.png" alt="Plot With Spec Lines.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 12:47:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/200283#M41697</guid>
      <dc:creator>Yngeinstn</dc:creator>
      <dc:date>2019-05-02T12:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: graph with different target or spec limits</title>
      <link>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/200304#M41698</link>
      <description>&lt;P&gt;You could use a graphics script. In the sample case, find 'HLine()' in 'Help &amp;gt; Scripting Index'. For eaxmple:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-05-02 at 14.39.05.png" style="width: 537px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17086i70EEF13D4DB4A60D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-05-02 at 14.39.05.png" alt="Screen Shot 2019-05-02 at 14.39.05.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;is created by this JSL:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
						Size( 529, 453 ),
						Show Control Panel( 0 ),
						Show Legend( 0 ),
						Variables( X( :weight ), Y( :height ) ),
						Elements( Points( X, Y, Legend( 6 ) ), Smoother( X, Y, Legend( 7 ) ) ),
						SendToReport(
							Dispatch(
								{},
								"Graph Builder",
								FrameBox,
								{Add Graphics Script(
									1,
									Description( "LowerSpec" ),
									Pen Color( "Red" );
									H Line( 100, 140, 60 );
								), Add Graphics Script(
									3,
									Description( "UpperSpec" ),
									Pen Color( "Red" );
									H Line( 100, 140, 67 );
								), Grid Line Order( 2 ), Reference Line Order( 4 )}
							)
						)
					);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Once you have the plot, right click on the graphics box and select 'Customize...'.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 13:44:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/200304#M41698</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2019-05-02T13:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: graph with different target or spec limits</title>
      <link>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/245827#M48301</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3605"&gt;@ian_jmp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologize for the extremely late response but i am finally at a point where I can use this. I got how the H Line() but does this only work for a straight horizontal line? I would like a sloped line...&lt;/P&gt;&lt;P&gt;From your script I would like line to start at x = 100 , y = 60 and go to x = 140, y = 62.5. We tend to complicate things with our spec limits&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use the examples from this post &lt;A href="https://community.jmp.com/t5/Discussions/Add-Graphics-Script-H-line-with-variable/m-p/238599" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Add-Graphics-Script-H-line-with-variable/m-p/238599&lt;/A&gt; as well..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:02:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/245827#M48301</guid>
      <dc:creator>Yngeinstn</dc:creator>
      <dc:date>2020-02-04T18:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: graph with different target or spec limits</title>
      <link>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/245843#M48306</link>
      <description>&lt;P&gt;JSL has a complete set of native graphic commands.&amp;nbsp; You can see them in the Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help=&amp;gt;Scripting Index&lt;/P&gt;
&lt;P&gt;if you click on the "Graphics"&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graphics.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21581i9D33D95215E12F36/image-size/large?v=v2&amp;amp;px=999" role="button" title="graphics.PNG" alt="graphics.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The Line() function is probably what you want, it can generate a line in any X/Y orientation&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:36:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/245843#M48306</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-02-04T18:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: graph with different target or spec limits</title>
      <link>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/245855#M48310</link>
      <description>&lt;P&gt;Thank you.. I will look into that&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 19:34:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/245855#M48310</guid>
      <dc:creator>Yngeinstn</dc:creator>
      <dc:date>2020-02-04T19:34:45Z</dc:date>
    </item>
  </channel>
</rss>

