cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
G_M
G_M
Level III

Any Advice: Fill Color not working in Graph Box?

Good morning,

for some reason the rectangles in this Graph Box are not filling with specified color.  Perhaps it is something simple that I am missing:

new Window("Test",
H List Box(
g0 = Graph Box(
			Frame Size(50, 500),
			Y Scale(-1, 6),
			X Scale(0, 6),
			Fill Color("Green");
			Rect(0, 1.1, 6, 0);
			Fill Color("Yellow");
			Rect(0, 1.6, 6, 1.1);
			Fill Color("Orange");
			Rect(0, 1.8, 6, 1.6);
			Fill Color("Red");
			Rect(0, 5.9, 6, 1.8);
		),
g1 = Graph Box(
			Frame Size(50, 500),
			Y Scale(-1, 6),
			X Scale(0, 6),
			Fill Color("Green");
			Rect(0, 1.1, 6, 0);
			Fill Color("Yellow");
			Rect(0, 1.6, 6, 1.1);
			Fill Color("Orange");
			Rect(0, 1.8, 6, 1.6);
			Fill Color("Red");
			Rect(0, 5.9, 6, 1.8);
		),
g2 = Graph Box(
			Frame Size(50, 500),
			Y Scale(-1, 6),
			X Scale(0, 6),
			Fill Color("Green");
			Rect(0, 1.1, 6, 0);
			Fill Color("Yellow");
			Rect(0, 1.6, 6, 1.1);
			Fill Color("Orange");
			Rect(0, 1.8, 6, 1.6);
			Fill Color("Red");
			Rect(0, 5.9, 6, 1.8);
		),
g3 = Graph Box(
			Frame Size(50, 500),
			Y Scale(-1, 6),
			X Scale(0, 6),
			Fill Color("Green");
			Rect(0, 1.1, 6, 0);
			Fill Color("Yellow");
			Rect(0, 1.6, 6, 1.1);
			Fill Color("Orange");
			Rect(0, 1.8, 6, 1.6);
			Fill Color("Red");
			Rect(0, 5.9, 6, 1.8);
		),
	),
);

g0[Axis Box(1)]<< Delete;
g1[Axis Box(1)]<< Delete;
g2[Axis Box(1)]<< Delete;
g3[Axis Box(1)]<< Delete;

Thanks in Advance!

MG

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Any Advice: Fill Color not working in Graph Box?

You need to add a 5th element to the Rect() function. The 5th element specifies if the rectangle is to be filled (1) or not filled (0). See the Scripting Index for more info.
rect( 11,15,15,11,1)
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Any Advice: Fill Color not working in Graph Box?

You need to add a 5th element to the Rect() function. The 5th element specifies if the rectangle is to be filled (1) or not filled (0). See the Scripting Index for more info.
rect( 11,15,15,11,1)
Jim
G_M
G_M
Level III

Re: Any Advice: Fill Color not working in Graph Box?

I got it, I need to add the Boolean for Fill..