Re: Multiple Subregions Background In a Grid
- To: mathgroup at smc.vnet.net
- Subject: [mg119245] Re: Multiple Subregions Background In a Grid
- From: Peter Breitfeld <phbrf at t-online.de>
- Date: Wed, 25 May 2011 19:35:07 -0400 (EDT)
- References: <irijof$qe2$1@smc.vnet.net>
Maybe you want something like this, using Item: tab=Table["g",{4},{7}]; tab[[1,3]]=Item[tab[[1,3]],Background->LightRed]; Grid[tab,Background->None] If you want a subregion, you may replace the second row from above with D[tab[[i,j]]=Item[tab[[i,j]],Background->LightRed],{i,1,2},{j,3,5}] //Peter Louis-Alexandre wrote: > Dear All, > > I can`t figure out how to define several subregions with different > color background as in the below. > > Any Idea ? > > Many thanks, > > LA > > > Grid[Table["g", {4}, {7}], > Background -> {None, None, {{{1, 3}, {1, 3}} -> LightRed}}] > -- _________________________________________________________________ Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de