Re: Dividers formatting in Grid
- To: mathgroup at smc.vnet.net
- Subject: [mg83164] Re: Dividers formatting in Grid
- From: "David Park" <djmpark at comcast.net>
- Date: Tue, 13 Nov 2007 03:44:08 -0500 (EST)
- References: <fh9920$aue$1@smc.vnet.net>
Murray,
It does seem complicated! And it does look like something of a bug. I think
the last item for spec_i choices is the key.
{spec,rules} use rules to override specifications in spec
Grid[Join[{{"First", "Second", "Third"}}, Partition[Range[6], 3]],
Dividers -> {{None, {2 -> Red, 3 -> Red}}, {2 -> Blue}}]
None specifies no vertical dividers but the second list overrides specific
positions.
However, it is not necessary to specify None because if we use a list of
rules then they are the only dividers that are drawn.
Grid[Join[{{"First", "Second", "Third"}}, Partition[Range[6], 3]],
Dividers -> {{2 -> Red, 3 -> Red}, {2 -> Blue}}]
--
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/
"Murray Eisenberg" <murray at math.umass.edu> wrote in message
news:fh9920$aue$1 at smc.vnet.net...
> In the following Grid, why are the two vertical dividers not red?
>
> Grid[Join[{{"First", "Second", "Third"}}, Partition[Range[6], 3]],
> Dividers -> {{None, 2 -> Red, 3 -> Red}, {2 -> Blue}}]
>
> (On my Windows XP system with Mathematica 6.01, they are black.)
>
> Note that in the following Grid, the single vertical divider IS red:
>
> Grid[Join[{{"First","Second"}},Partition[Range[4],2]],
> Dividers->{{None,2->Red},{2->Blue}}]
>
> Am I not understanding the syntax or semantics of the Dividers option?
>
> --
> Murray Eisenberg murray at math.umass.edu
> Mathematics & Statistics Dept.
> Lederle Graduate Research Tower phone 413 549-1020 (H)
> University of Massachusetts 413 545-2859 (W)
> 710 North Pleasant Street fax 413 545-1801
> Amherst, MA 01003-9305
>
- Follow-Ups:
- Re: Re: Dividers formatting in Grid
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Re: Dividers formatting in Grid