Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2717

Re: Multiple Subregions Background In a Grid

From Heike Gramberg <heike.gramberg@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Multiple Subregions Background In a Grid
Date 2011-05-25 23:33 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <irk3ku$7ar$1@smc.vnet.net> (permalink)

Show all headers | View raw


You could do something like

Grid[Table["g", {4}, {7}],
 Background -> {None, None,
   {{{1, 3}, {1, 3}} -> LightRed, {{1, 2}, {4, 6}} ->
     Blue, {{4, 4}, {5, 7}} -> Green}}]

Heike.

On 25 May 2011, at 10:55, 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}}]
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Multiple Subregions Background In a Grid Heike Gramberg <heike.gramberg@gmail.com> - 2011-05-25 23:33 +0000

csiph-web