MathGroup Archive 1999

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

Search the Archive

Drawing Rectangular Grid

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20198] Drawing Rectangular Grid
  • From: Wilson Figueroa <flip at aznet.net>
  • Date: Tue, 5 Oct 1999 04:04:26 -0400
  • Organization: Wacky World of Mathematics
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,

I was hoping someone here could help.  I am writing some code for a
Cellular Automata Simulator.

I would like to have a function that I can give the following
information to:

Grid[size_of_grid, matrix_of_cells_to_fill]

This function will draw a n x m rectangular grid = size (for example
size = {2,2} for a 2 x 2 grid).

I then will pass an array of the cells to be filled.  For example
{{1,1},{2,2}}.  It could also be {{1,1},{1,2},{2,1},{2,2}}, in which
case the whole grid will have filled cells.

The Grid function will then return a Rectangular Grid with the cells
(1,1) and (2,2), which are the diagonal cells filled in as either black
cells or, better yet, as filled in circles that are smaller in size than
the square grid cell size. (Little circles enclosed within the grid
cells).

Can someone help me with this function (I don't think that such a thing
would be difficult for an experienced Mathematica user, but one never knows).

Also, I am using Mathematica V. 3.0.  I got 4.0, but there are various install
issues that I am working through.

Thank you for any assistance.

Wilson Figueroa
flip at safebunch.com
(PS please visit my website for your free email and web directory at
http://safebunch.com )



  • Prev by Date: RE: Re: NonlinearRegress and numerical functions...
  • Next by Date: Subscript Variable
  • Previous by thread: Re: Follow-Up Question to
  • Next by thread: Re: Drawing Rectangular Grid