<?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: Creating a wafer map with discrete cell values in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Creating-a-wafer-map-with-discrete-cell-values/m-p/706124#M89070</link>
    <description>&lt;P&gt;Thank you very much! This would be a good workaround until my company upgrades JMP :)&lt;/img&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 21:06:04 GMT</pubDate>
    <dc:creator>rhakim23</dc:creator>
    <dc:date>2023-12-05T21:06:04Z</dc:date>
    <item>
      <title>Creating a wafer map with discrete cell values</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-wafer-map-with-discrete-cell-values/m-p/706051#M89062</link>
      <description>&lt;P&gt;I'm trying to create a wafer map where each die would be colored differently based on a predetermined color code (i.e. FAIL TYPE 1 = color 1, FAIL TYPE 2 = color 2, PASS = color 3, etc.). Best I am able to get is something like this graph builder heat map:&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="rhakim23_0-1701799992808.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59340i4B044DFD4E2D3CF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rhakim23_0-1701799992808.png" alt="rhakim23_0-1701799992808.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example the color coding needs to be determined by column "CATEGORY" which is Character/Nominal and has values as PASS, FAIL1, FAIL2, FAIL3. However the way the graph builder appears to handle it is ignoring the actual values and making them kind of numeric/continuous, as can be seen above by "Count", 0-3, and the color scheme is automatically set to Blue-to-Red.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code is shown below. Is there any way to specify the color scheme as needed? I am using JMP Pro 14.3. TIA!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;JSL&amp;gt;&lt;/P&gt;&lt;P&gt;Graph Builder(&lt;BR /&gt;Size( 461, 400 ),&lt;BR /&gt;Variables( X( :X ), Y( :Y ), Color( :CATEGORY ) ),&lt;BR /&gt;Elements( Heatmap( X, Y, Legend( 1 ) ) ),&lt;BR /&gt;SendToReport(&lt;BR /&gt;Dispatch( {"Heatmap"}, "", OutlineBox, {Close( 0 )} ),&lt;BR /&gt;Dispatch( {}, "400", LegendBox, {Set Title( "Count" )} )&lt;BR /&gt;)&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;lt;/JSL&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 18:20:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-wafer-map-with-discrete-cell-values/m-p/706051#M89062</guid>
      <dc:creator>rhakim23</dc:creator>
      <dc:date>2023-12-05T18:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a wafer map with discrete cell values</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-wafer-map-with-discrete-cell-values/m-p/706072#M89063</link>
      <description>&lt;P&gt;This might behave differently in JMP14 than in JMP17, but make sure that Summary statistic is set to None&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1701801356985.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59342i920F55460B95022E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1701801356985.png" alt="jthi_1-1701801356985.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Also if you have multiple wafermaps in same plot, how should JMP determine which category to use if same coordinate has multiple different categories?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is done with JMP17&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Wafer Stacked.jmp");
dt:X_Die &amp;lt;&amp;lt; Set Modeling Type("Nominal");
dt:Y_Die &amp;lt;&amp;lt; Set Modeling Type("Nominal");

dt &amp;lt;&amp;lt; Delete Rows(dt &amp;lt;&amp;lt; Get Rows Where(:Lot_Wafer Label != "1_1"));

dt &amp;lt;&amp;lt; New Column("Type", Numeric, "Nominal", &amp;lt;&amp;lt; Set Each Value(
	Random Category(0.15, 1, 0.05, 2, 0.8, 3)
));

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables(X(:X_Die), Y(:Y_Die), Color(:Type)),
	Elements(Heatmap(X, Y, Legend(5)))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1701801452684.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59343i75285C43479016AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1701801452684.png" alt="jthi_2-1701801452684.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 18:37:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-wafer-map-with-discrete-cell-values/m-p/706072#M89063</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-12-05T18:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a wafer map with discrete cell values</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-wafer-map-with-discrete-cell-values/m-p/706073#M89064</link>
      <description>&lt;P&gt;We do these types of heatmaps all the time with JMP v17 and it works fine, so I'm left wondering if this is just a bug in JMP v14.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 18:38:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-wafer-map-with-discrete-cell-values/m-p/706073#M89064</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2023-12-05T18:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a wafer map with discrete cell values</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-wafer-map-with-discrete-cell-values/m-p/706078#M89066</link>
      <description>&lt;P&gt;Seems like I don't have that option for summary statistic or configure levels on JMP 14... too bad because that seems to be exactly what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also tried running your code, I'm getting the same type of results as I did before. Thanks for your help!&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="rhakim23_0-1701801959706.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59344i53BA53AA48D95A0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rhakim23_0-1701801959706.png" alt="rhakim23_0-1701801959706.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 18:48:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-wafer-map-with-discrete-cell-values/m-p/706078#M89066</guid>
      <dc:creator>rhakim23</dc:creator>
      <dc:date>2023-12-05T18:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a wafer map with discrete cell values</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-wafer-map-with-discrete-cell-values/m-p/706097#M89068</link>
      <description>&lt;P&gt;It appears that JMP 14 forces the colors to a gradient.&amp;nbsp; Therefore, I ran the wafermap and then created a custom gradient pattern, where only 3 colors were defined for the gradient.&amp;nbsp; The code below was generated in JMP 14&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1701803815228.png" style="width: 734px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59347i3927710494B68064/image-dimensions/734x484?v=v2" width="734" height="484" role="button" title="txnelson_0-1701803815228.png" alt="txnelson_0-1701803815228.png" /&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/Wafer Stacked.jmp" );
dt:X_Die &amp;lt;&amp;lt; Set Modeling Type( "Nominal" );
dt:Y_Die &amp;lt;&amp;lt; Set Modeling Type( "Nominal" );

dt &amp;lt;&amp;lt; Delete Rows( dt &amp;lt;&amp;lt; Get Rows Where( :Lot_Wafer Label != "1_1" ) );

dt &amp;lt;&amp;lt; New Column( "Type",
	Numeric,
	"Nominal",
	&amp;lt;&amp;lt;Set Each Value( Random Category( 0.15, 1, 0.05, 2, 0.8, 3 ) )
);

gb = Graph Builder(
	Variables( X( :X_Die ), Y( :Y_Die ), Color( :Type ) ),
	Elements( Heatmap( X, Y, Legend( 5 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				5,
				Properties(
					0,
					{gradient(
						{Color Theme(
							{"Green Yellow Red Copy", 1, {"Green", {110, 197, 30}, "Yellow", {224, 176, 10},
							"red", {256, 0, 0}}}
						)},
						Item ID( "Type", 1 )
					)}
				)
			)}
		),
		Dispatch( {}, "400", LegendBox, {Legend Position( {5, [-1]} ), Position( {-1} )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 19:18:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-wafer-map-with-discrete-cell-values/m-p/706097#M89068</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-12-05T19:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a wafer map with discrete cell values</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-wafer-map-with-discrete-cell-values/m-p/706124#M89070</link>
      <description>&lt;P&gt;Thank you very much! This would be a good workaround until my company upgrades JMP :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 21:06:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-wafer-map-with-discrete-cell-values/m-p/706124#M89070</guid>
      <dc:creator>rhakim23</dc:creator>
      <dc:date>2023-12-05T21:06:04Z</dc:date>
    </item>
  </channel>
</rss>

