Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to draw a Grid of characters where some of the characters have Frame lines on 3 sides. For example:

  +   +
x | x | x
x   x   x

x   x   x

That's something like a Grid[item = Table[x,{3},{3}]], except with item[[1,2]] = Item[x,FrameStyle->{{White,Black},{Black,Black}}], except that produces a complete box around the x for me.

When the documentation says:

FrameStyle->{{left,right},{bottom,top}} specifies that different sides of a graphics frame should be drawn with different styles.

I fear that the "...of a graphics frame..." part means that this will work for a Plot, but not for a Grid.

Is there a way to style a frame such that I only draw three edges of it? It doesn't have to be pretty--I'm planning on generating the Grid from some data that I have lying around.

share|improve this question
up vote 17 down vote accepted

How about this?

Grid[{{1, 2, 3}, {4, Item[5, Frame -> {{True, True}, {True, False}}], 6}}]


share|improve this answer
You beat me. :-) – Mr.Wizard Apr 17 '12 at 22:57
A very rare occurrence. – DavidC Apr 17 '12 at 22:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.