Re: Dividers formatting in Grid
- To: mathgroup at smc.vnet.net
- Subject: [mg83152] Re: [mg83123] Dividers formatting in Grid
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Tue, 13 Nov 2007 03:37:56 -0500 (EST)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <200711121011.FAA10920@smc.vnet.net> <C04E4DF4-2459-4A06-8D73-61C7CD6B4CCF@mac.com>
- Reply-to: murray at math.umass.edu
OK, thanks. I guess the problem is with mixing the "absolute" listing of Dividers properties (None, in my case) with the form n-> spec. However, it seems to be just the "None" that's a problem, since the following does work as expected: Grid[Join[{{"First", "Second", "Third"}}, Partition[Range[6], 3]], Dividers -> {{Green, 2 -> Red, 3 -> Red}, {2 -> Blue}}] It was by analogy with that form that I tried substituting None for Green. So it still seems that Mathematica has not fully or correctly implemented all the possibilities of syntax for Dividers. Note that, in addition to the way you gave (with the leading None deleted), it would also be OK to use (the slightly redundant): Grid[Join[{{"First", "Second", "Third"}}, Partition[Range[6], 3]], Dividers -> {{1 -> None, 2 -> Red, 3 -> Red}, {2 -> Blue}}] Syd Geraghty wrote: > Hi Murray, > > This gives what you want ...HTH > > Grid[Join[{{"First", "Second", "Third"}}, Partition[Range[6], 3]], > Dividers -> {{2 -> Red, 3 -> Red}, {2 -> Blue}}] > > > Cheers ... Syd > > Syd Geraghty B.Sc., M.Sc. > sydgeraghty at mac.com > San Jose, CA > > My System > > Mathematic 6.0.1 for Mac OS X x86 (32 - bit) (June 19, 2007) License > L2983-5890 > MacOS X V 10.4 .10 > MacBook Pro 2.33 Ghz Intel Core 2 Duo 2GB RAM > > On Nov 12, 2007, at 2:11 AM, Murray Eisenberg wrote: > >> 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 >> > -- 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:
- Dividers formatting in Grid
- From: Murray Eisenberg <murray@math.umass.edu>
- Dividers formatting in Grid