| Author |
Comment/Response |
yehuda ben-shimol
|
10/31/06 11:46pm
Hi,
You can use Table within Graphics so there is no need of For loops
look at the following code
elnum = 3;
Show[Graphics[Table[{
Hue[0.55], Rectangle[{0, y}, {
4, y + 1.5}], RGBColor[1,
1, 1], Rectangle[{0.2, y + 0.2}, {
3.8, y + 1.3}]}, {y, 0, (elnum - 1)*2.5, 2.5}],
AspectRatio -> Automatic, ImageSize -> {100, Automatic}]];
regards
yehuda
URL: , |
|