Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Merging cells and exporting graphics' topicStudent Support Forum > General > Archives > "Merging cells and exporting graphics"

< Previous CommentHelp | Reply To Comment | Reply To Topic
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: ,

Subject (listing for 'Merging cells and exporting graphics')
Author Date Posted
Merging cells and exporting graphics Lucija 10/31/06 10:06am
Re: Merging cells and exporting graphics yehuda ben-s... 10/31/06 11:46pm
< Previous CommentHelp | Reply To Comment | Reply To Topic