- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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)
rect( 11,15,15,11,1)
Jim
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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)
rect( 11,15,15,11,1)
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Any Advice: Fill Color not working in Graph Box?
I got it, I need to add the Boolean for Fill..