<?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 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/106187#M38990</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have a graph for 2 product (P and X) like this image below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to add a ref line and a&amp;nbsp; colored zone specific for each product with the jsl of the graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph pour cibles.jpg" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15103iE116B00247A362A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph pour cibles.jpg" alt="graph pour cibles.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2019 10:49:49 GMT</pubDate>
    <dc:creator>Françoise</dc:creator>
    <dc:date>2019-01-15T10:49:49Z</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/106187#M38990</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have a graph for 2 product (P and X) like this image below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to add a ref line and a&amp;nbsp; colored zone specific for each product with the jsl of the graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph pour cibles.jpg" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15103iE116B00247A362A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph pour cibles.jpg" alt="graph pour cibles.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 10:49:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/106187#M38990</guid>
      <dc:creator>Françoise</dc:creator>
      <dc:date>2019-01-15T10:49:49Z</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/106338#M38993</link>
      <description>&lt;P&gt;Think you may have to resort to graphics scripts. Making this general would take some work, but is perfectly possible. Use 'Help &amp;gt; Scripting Index' for more details.&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-01-15 at 11.41.37.png" style="width: 538px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15105iAD06A2F4014CCBDE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-01-15 at 11.41.37.png" alt="Screen Shot 2019-01-15 at 11.41.37.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

// Using the axis gives common values for the groups
gb1 = dt &amp;lt;&amp;lt; Graph Builder(
				Size( 534, 488 ),
				Show Control Panel( 0 ),
				Show Legend( 0 ),
				Variables( X( :weight ), Y( :height ), Group X( :sex ) ),
				Elements( Points( X, Y, Legend( 8 ) ), Smoother( X, Y, Legend( 9 ) ) ),
				SendToReport(
					Dispatch(
						{},
						"height",
						ScaleBox,
						{Add Ref Line( {60, 65}, "Solid", "Green", "Middle", 1, 0.25 ),
						Add Ref Line( {65, 70}, "Solid", "Medium Dark Cyan", "Top", 1, 0.25 ),
						Add Ref Line( 65, "Solid", "Orange", "", 1 )}
					)
				)
			);

// Different values for each group takes more work
gb2 = dt &amp;lt;&amp;lt; Graph Builder(
				Size( 534, 488 ),
				Show Control Panel( 0 ),
				Show Legend( 0 ),
				Variables( X( :weight ), Y( :height ), Group X( :sex ) ),
				Elements( Points( X, Y, Legend( 8 ) ), Smoother( X, Y, Legend( 9 ) ) )
			);
gb2Rep = Report(gb2);
// Females . . .
gb2Rep[Framebox(1)] &amp;lt;&amp;lt; addGraphicsScript(
							PenColor("Orange"); HLine(60);
							Transparency(0.25);
							FillColor("Green");
							Rect(50, 60, 180, 55, 1);
							FillColor("Blue");
							Rect(50, 65, 180, 60, 1);
						);
// Males . . .
gb2Rep[Framebox(2)] &amp;lt;&amp;lt; addGraphicsScript(
							PenColor("Orange"); HLine(65);
							Transparency(0.25);
							FillColor("Green");
							Rect(50, 65, 180, 60, 1);
							FillColor("Blue");
							Rect(50, 70, 180, 65, 1);
						);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Jan 2019 11:43:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/106338#M38993</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2019-01-15T11:43:06Z</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/109610#M39641</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is a pb.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you exclude M and then re include M, you will have the same spec limits for F and M.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 11:35:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/109610#M39641</guid>
      <dc:creator>Françoise</dc:creator>
      <dc:date>2019-02-08T11:35:42Z</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/109829#M39722</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you hide the 'Males' (for example, by using a local data filter), the frame box that holds these points (in this case 'FrameBox(2)') is deleted from the display, along with the associated graphics script. When the 'Males' are unhidden, JMP will create the frame box it needs, but it will inherit the graphics script from the 'Females'. One could argue that it shouldn't do this, but then of course you would have no lines for the 'Males'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you could get the behaviour you want by using a row state handler but it would take some work to make this general.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 12:44:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/graph-with-different-target-or-spec-limits/m-p/109829#M39722</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2019-02-11T12:44:34Z</dc:date>
    </item>
  </channel>
</rss>

