Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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

1 Answer

up vote 16 down vote accepted

How about this?

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

frame

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

Your Answer

 
discard

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.