Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Dividers formatting in Grid

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83145] Re: Dividers formatting in Grid
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Tue, 13 Nov 2007 03:34:19 -0500 (EST)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <fh9920$aue$1@smc.vnet.net> <473859FB.6000109@gmail.com>
  • Reply-to: murray at math.umass.edu

Management of both horizontal and vertical Dividers arguments seems to 
be buggy: in the case that the first entry in the list (for horizontal 
or vertical divider specifications) is None, then the 2->..., 3->... 
methods ignore the specifications.  But if there is no None first, that 
kind of specification n->... seems to work.

I hope the documentation gets adjusted or the code gets fixed!

Jean-Marc Gulliet wrote:
> 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?
> 
> It seems that the management of horizontal dividers is a little bit 
> buggy. Anyway, replacing the rules for horizontal position management by 
> a list of graphic directives at "hard-coded" positions works fine. 
> (Note, as illustrated by the following example, that vertical dividers 
> do not seem to suffer this bug.)
> 
> Grid[Join[{{"First", "Second", "Third"}}, Partition[Range[12], 6]],
>  Dividers -> {{None, Red, Directive[Red, Dashing[2]],
>     Directive[Thickness[5], Green], None, None, Orange}, {2 -> Blue,
>     3 -> Directive[Thickness[3], Orange], -1 -> Pink}}]
> 
> You can see the result at
> 
> http://homepages.nyu.edu/~jmg336/mathematica/dividers.pdf
> 
> Regards,

-- 
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


  • Prev by Date: Re: Mac OS X 10.5 - Mathematica 5.1 hangs - 6.0 works?
  • Next by Date: Re: Dividers formatting in Grid
  • Previous by thread: Re: Dividers formatting in Grid
  • Next by thread: Re: Dividers formatting in Grid