Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Grid Dividers

11 views
Skip to first unread message

John

unread,
Jan 14, 2010, 5:47:13 AM1/14/10
to
My method of inserting dividers in a grid is crude:

Grid[{{a, b, c}, {d, e, f}, {g, h, i}},
Dividers -> {{True, True, True, True}, {True, True, False, True}}]

There must be a better way.

John

Murray Eisenberg

unread,
Jan 15, 2010, 3:16:06 AM1/15/10
to
You could simplify that a bit:

Grid[{{a,b,c},{d,e,f},{g,h,i}},
Dividers -> {All, {True,True,False,True}}]

On 1/14/2010 5:47 AM, John wrote:
> Grid[{{a, b, c}, {d, e, f}, {g, h, i}},
> Dividers -> {{True, True, True, True}, {True, True, False, True}}]
>

--
Murray Eisenberg mur...@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

dh

unread,
Jan 15, 2010, 3:22:08 AM1/15/10
to

Hi John,

instead of specifying all dividers separately, you may use Frame->All to

set all and the eliminate the single one:

Grid[{{a, b, c}, {d, e, f}, {g, h, i}}, Frame -> All,

Dividers -> {{}, {3 -> False}}]

Daniel

Norbert Marxer

unread,
Jan 15, 2010, 6:59:56 AM1/15/10
to

Hello

This shows how you can selectively disable single dividers:

{m, n} = {5, 7};
Grid[Table[i + j, {i, 1, m}, {j, 1, n}],
Dividers -> {All, {All, 3 -> False}}]

It's actually a combination of the contributions by Murray and dh.

Best Regards
Norbert Marxer


0 new messages