Re: Nested Grids
- To: mathgroup at smc.vnet.net
- Subject: [mg89660] Re: Nested Grids
- From: kim <levcekslo at gmail.com>
- Date: Tue, 17 Jun 2008 00:36:29 -0400 (EDT)
- References: <g32q6b$c37$1@smc.vnet.net>
On 15 jun., 12:16, "David Park" <djmp... 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
> djmp... at comcast.nethttp://home.comcast.net/~djmpark/
Grid[{{Grid[{{a, b}, {c, d}}, Frame -> All, Background -> Orange],
e}, {f, g}}, Frame -> All,
Background -> {None, None, {{{1, 1}, {1, 1}} -> Orange}}]
Kim