Re: Re: Dividers formatting in Grid
- To: mathgroup at smc.vnet.net
- Subject: [mg83195] Re: [mg83164] Re: Dividers formatting in Grid
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Wed, 14 Nov 2007 04:52:58 -0500 (EST)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <fh9920$aue$1@smc.vnet.net> <200711130844.DAA27938@smc.vnet.net>
- Reply-to: murray at math.umass.edu
But then why does Grid[Join[{{"First", "Second", "Third"}}, Partition[Range[6], 3]], Dividers -> {{Green, 2 -> Red, 3 -> Red}, {2 -> Blue}}] work as expected? Why is it OK to mix the two types of specifications when the first item is Green but not when the first item is None (or False)? David Park wrote: > 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}}] > -- 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
- References:
- Re: Dividers formatting in Grid
- From: "David Park" <djmpark@comcast.net>
- Re: Dividers formatting in Grid