cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar

JSL change row legend color from dataset

Hi all,

 

I'm trying to make script which shows row legend with Bin# for the wafer map.

My dataset has LotID, wfID, X, Y, bin info and trying to bring colors based on what we have on original dataset. 

Datasets are colored accordingly, but my row legend for wafer map doesn't. 

ResamplingHorse_0-1663303268410.png

Bivariate(
	Y(:Die Y),
	X(:Die X),
	By(:Lot id, :Sub Lot id),
	Title("Lot " || Char(:Lot id) || " Wafer " || Char(:Sub Lot id)),
	SendToReport(
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			{Frame Size(250, 228), Row Legend(
				Final SB,
				Color(0),
				Marker(0),
				Marker Theme(""),
				Continuous Scale(0),
				Reverse Scale(0),
				Excluded Rows(0)
			)}
		)
	)
);

Can someone help me out to match row legend colors with what we have in the wafer map?

 

Thanks in advance.

Best regards,

K

3 REPLIES 3
jthi
Super User

Re: JSL change row legend color from dataset

Is there a specific reason to using Bivariate (Fit Y by X) instead of Graph Builder? In graph builder you could use Color:

jthi_0-1663307265332.png

and to get correct "by" column you could combine  lot id and sub lot id columns into one with concatenate and use Wrap or Page

jthi_1-1663307419418.png

 

-Jarmo
txnelson
Super User

Re: JSL change row legend color from dataset

I am guessing a bit, but it seems that what you did, was to run your script on your data table

txnelson_0-1663311187870.png

txnelson_1-1663311233823.png

And then specified

     Color or Mark by Column

and selected Final SB as the column to color by

txnelson_2-1663311360557.png

Which gave you

txnelson_3-1663311443947.png

The Legend clearly isn't getting changed as it should.  To work around this issue, just run your script after you have done the 

     Color or Mark by Column

and you will get

txnelson_4-1663311724885.png

 

 

Jim

Re: JSL change row legend color from dataset

Hi Jim, 

 

Thanks for your kind answer. 

The sequence of my script is: Change color from dataset according to SBin -> build wafer map. 

As I'm putting a color before running a script to build a wafer, I'm quite lost where to debug.

 

Best regards,

K