<?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 how to combine 2 graphs i mean like overlaying one on the other in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/how-to-combine-2-graphs-i-mean-like-overlaying-one-on-the-other/m-p/391079#M64124</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having two graphs individually and I would like to have one graph on the other.&lt;/P&gt;&lt;P&gt;I tried using combined windows and copy pasting frame contents but when I hover over the mouse to the pasted graph contents the values aren't popping can anyone help me out in solving this.&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="penalah_0-1623019172095.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33307i198565190C375595/image-size/medium?v=v2&amp;amp;px=400" role="button" title="penalah_0-1623019172095.png" alt="penalah_0-1623019172095.png" /&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;Thank you,&lt;/P&gt;&lt;P&gt;Hanuja&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:14:32 GMT</pubDate>
    <dc:creator>penalah</dc:creator>
    <dc:date>2023-06-11T11:14:32Z</dc:date>
    <item>
      <title>how to combine 2 graphs i mean like overlaying one on the other</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-combine-2-graphs-i-mean-like-overlaying-one-on-the-other/m-p/391079#M64124</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having two graphs individually and I would like to have one graph on the other.&lt;/P&gt;&lt;P&gt;I tried using combined windows and copy pasting frame contents but when I hover over the mouse to the pasted graph contents the values aren't popping can anyone help me out in solving this.&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="penalah_0-1623019172095.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33307i198565190C375595/image-size/medium?v=v2&amp;amp;px=400" role="button" title="penalah_0-1623019172095.png" alt="penalah_0-1623019172095.png" /&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;Thank you,&lt;/P&gt;&lt;P&gt;Hanuja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:14:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-combine-2-graphs-i-mean-like-overlaying-one-on-the-other/m-p/391079#M64124</guid>
      <dc:creator>penalah</dc:creator>
      <dc:date>2023-06-11T11:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 graphs i mean like overlaying one on the other</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-combine-2-graphs-i-mean-like-overlaying-one-on-the-other/m-p/391095#M64126</link>
      <description>&lt;P&gt;While it is easy to overlay graphs using Graph Builder, there is a problem with displaying Spec Limits when more than one columns is overalyed.&amp;nbsp; However, it is a simple process to add a little script that will add the reference lines.&amp;nbsp; Here is one way to do it&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="over.JPG" style="width: 630px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33308iAF40A8EC61ABF862/image-size/large?v=v2&amp;amp;px=999" role="button" title="over.JPG" alt="over.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$sample_data/semiconductor capability.jmp" );

gb = Graph Builder(
	Size( 534, 450 ),
	Show Control Panel( 0 ),
	Variables( X( :wafer ), Y( :NPN1 ), Y( :NPN2, Position( 1 ) ) ),
	Elements( Points( X, Y( 1 ), Y( 2 ), Legend( 8 ) ) )
);



// determine the columns to add limit reference lines from
theReport = Current Report();
theScript = Char( (theReport[Outline Box( 1 )] &amp;lt;&amp;lt; get scriptable object) &amp;lt;&amp;lt; get script );
theYColList = {};
While( Contains( theScript, "Y(:" ) != 0,
	theScript = Substr( theScript, Contains( theScript, "Y(:" ) + 3 );
	Insert Into( theYColList, Word( 1, theScript, ":)," ) );
);
// Create the reference lines
For( i = 1, i &amp;lt;= N Items( theYColList ),i++,
	specs = Column( theYColList[i] ) &amp;lt;&amp;lt; get property( "spec limits" );
	If( Try( specs["USL"], "" ) != "",
		theReport[AxisBox( 2 )] &amp;lt;&amp;lt; Add Ref Line( specs["USL"], "Dashed", black, theYColList[i] || " USL" )
	);
	If( Try( specs["LSL"], "" ) != "",
		theReport[AxisBox( 2 )] &amp;lt;&amp;lt; Add Ref Line( specs["LSL"], "Dashed", black, theYColList[i] || " LSL" )
	);
	If( Try( specs["Target"], "" ) != "",
		theReport[AxisBox( 2 )] &amp;lt;&amp;lt; Add Ref Line( specs["Target"], "Dashed", black, theYColList[i] || " Target" )
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Jun 2021 01:27:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-combine-2-graphs-i-mean-like-overlaying-one-on-the-other/m-p/391095#M64126</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-06-07T01:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 graphs i mean like overlaying one on the other</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-combine-2-graphs-i-mean-like-overlaying-one-on-the-other/m-p/391937#M64227</link>
      <description>Is the graph that I proposed, an acceptable combining of the 2 graphs?  If not, and you need to have the different overlays as defined in your 2 scripts, then I am not aware of a way to cut an paste the graphs from 2 different data tables.</description>
      <pubDate>Wed, 09 Jun 2021 01:32:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-combine-2-graphs-i-mean-like-overlaying-one-on-the-other/m-p/391937#M64227</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-06-09T01:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to combine 2 graphs i mean like overlaying one on the other</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-combine-2-graphs-i-mean-like-overlaying-one-on-the-other/m-p/391948#M64229</link>
      <description>&lt;P&gt;Here is an example that somewhat resembles your 2 data table input that needs to be put together into one plot.&amp;nbsp; You need to study the script, and then take the new information and apply it back onto your scripts.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1623209902381.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33411iE2CEAF7DFCCC894E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1623209902381.png" alt="txnelson_0-1623209902381.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$sample_data/semiconductor capability.jmp" );

// Create 2 Data tables to mimic the Discussion Question situation
dt1 = dt &amp;lt;&amp;lt; subset( columns(Wafer, Site, NPN1), selected rows(0));
dt2 = dt &amp;lt;&amp;lt; subset( columns(lot_id, Wafer, Site, NPN2), selected rows(0));

// Select rows wanted from table dt1
dt1 &amp;lt;&amp;lt; select where( :wafer &amp;lt;= 10 );
// Create new subset of selected rows
dt1Final = dt1 &amp;lt;&amp;lt; subset( selected rows( 1 ), selected columns( 0 ) );

// Select rows wanted from table dt2
dt2 &amp;lt;&amp;lt; select where( contains( {"lot01", "lot02"}, :lot_id  ));
// Create new subset of selected rows
dt2Final = dt2 &amp;lt;&amp;lt; subset( selected rows( 1 ), selected columns( 0 ) );

// put the data together
dtTogether = dt1Final &amp;lt;&amp;lt; concatenate( dt2Final );

gb = Graph Builder(
	Size( 534, 450 ),
	Show Control Panel( 0 ),
	Variables( X( :wafer ), Y( :NPN1 ), Y( :NPN2, Position( 1 ) ) ),
	Elements( Points( X, Y( 1 ), Y( 2 ), Legend( 5 ) ) )
);
theReport = report(gb);

// Create the reference lines
theYColList = { "NPN1", "NPN2" };
For( i = 1, i &amp;lt;= N Items( theYColList ),i++,
	specs = Column( theYColList[i] ) &amp;lt;&amp;lt; get property( "spec limits" );
	If( Try( specs["USL"], "" ) != "",
		theReport[AxisBox( 2 )] &amp;lt;&amp;lt; Add Ref Line( specs["USL"], "Dashed", black, theYColList[i] || " USL" )
	);
	If( Try( specs["LSL"], "" ) != "",
		theReport[AxisBox( 2 )] &amp;lt;&amp;lt; Add Ref Line( specs["LSL"], "Dashed", black, theYColList[i] || " LSL" )
	);
	If( Try( specs["Target"], "" ) != "",
		theReport[AxisBox( 2 )] &amp;lt;&amp;lt; Add Ref Line( specs["Target"], "Dashed", black, theYColList[i] || " Target" )
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 03:38:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-combine-2-graphs-i-mean-like-overlaying-one-on-the-other/m-p/391948#M64229</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-06-09T03:38:58Z</dc:date>
    </item>
  </channel>
</rss>

