It appears that JMP 14 forces the colors to a gradient. Therefore, I ran the wafermap and then created a custom gradient pattern, where only 3 colors were defined for the gradient. The code below was generated in JMP 14
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Wafer Stacked.jmp" );
dt:X_Die << Set Modeling Type( "Nominal" );
dt:Y_Die << Set Modeling Type( "Nominal" );
dt << Delete Rows( dt << Get Rows Where( :Lot_Wafer Label != "1_1" ) );
dt << New Column( "Type",
Numeric,
"Nominal",
<<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} )} )
)
);
Jim