Re: Nested Grids
- To: mathgroup at smc.vnet.net
- Subject: [mg89655] Re: [mg89622] Nested Grids
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Mon, 16 Jun 2008 06:41:54 -0400 (EDT)
- Reply-to: hanlonr at cox.net
This solution is not general but works for your example. Grid[{ {Grid[{{a, b}, {c, d}}, Frame -> All, Background -> Orange], e}, {f, g}}, Frame -> All, Spacings -> {0, 0}, ItemSize -> All] Bob Hanlon ---- David Park <djmpark at comcast.net> wrote: > Nested Grids would seem to be a very useful construct because subportions of > a large grid could be independently developed. However, I have been studying > the tutorial/GridsRowsAndColumns and it has only one example and that > example hides a defect. Here is the slightly modified example with Frames > added for all elements: > > Grid[{{Grid[{{a, b}, {c, d}}, Frame -> All, Background -> Orange], > e}, {f, g}}, > Frame -> All] > > The problem is that the nested Grid does not fill its space. If we use > Dividers -> Central, they also do not fill to the edges of the containing > item. It seems that we need something like an ImageMargins option, but that > is not available. Is there an easy method to get nested grids to fill their > space in the enclosing grid? Is there a hard way? > > -- > David Park > djmpark at comcast.net > http://home.comcast.net/~djmpark/ > > >
- Follow-Ups:
- Re: Re: Nested Grids
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Re: Nested Grids