MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Problem using a loop to generate data for Point function


In a message dated 7/22/02 3:00:59 AM, carnright at yahoo.com writes:

>For[i = 1, i < 10, i++, Show[Graphics[Point[{i, i}]]]]
>
>This genereates nine graphics with one point each.  I was trying to
>generate one graphic with nine points.  I see my problem as calling
>the Point function nine times instead of only once.  I wish to use the
>data generated by the loop on a single graphic.
>
>Thanks in advance for help on this :)
>
>P.S.  In the end I will be doing three For loops in a nested formation
>to generate the data to put on one graphic.
>

Show[Graphics[Table[Point[{i,i}],{i,9}]]];

Show[Graphics[Table[Point[{i,j}],{i,3},{j,3}]]];


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: Re: Q: Simplify with "much less" assumptions
  • Next by Date: AW: Q: Simplify with "much less" assumptions
  • Previous by thread: Re: Problem using a loop to generate data for Point function
  • Next by thread: RE: Problem using a loop to generate data for Point function