Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2722
| From | Peter Breitfeld <phbrf@t-online.de> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Multiple Subregions Background In a Grid |
| Date | 2011-05-25 23:34 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <irk3mv$7ci$1@smc.vnet.net> (permalink) |
| 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
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Multiple Subregions Background In a Grid Louis-Alexandre <laeh@nyu.edu> - 2011-05-25 09:56 +0000 Re: Multiple Subregions Background In a Grid Peter Breitfeld <phbrf@t-online.de> - 2011-05-25 23:34 +0000 Re: Multiple Subregions Background In a Grid Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-05-25 23:33 +0000
csiph-web