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 have a regular 2D plot, I would like to put the x-ticks labels on the top of the frame. Is there a simple way of doing this?

Everything I've found so far seems to be very involved. It seems like there ought to be a way to place them similar to the way you can place frame labels on any of the 4 sides of the frame. (A common example are graphs with two y-axes, one scale on the left, and a different scale on the right. In my case I only have one x-axis, but I want it to be on the top, not at the bottom).

share|improve this question

closed as off-topic by Kuba, Artes, Sjoerd C. de Vries, Ajasja, halirutan Aug 23 '13 at 0:38

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Kuba, Artes, Sjoerd C. de Vries, Ajasja, halirutan
If this question can be reworded to fit the rules in the help center, please edit the question.

Have you tried looking to documentation? –  Kuba Aug 22 '13 at 18:48

1 Answer 1

up vote 6 down vote accepted

Will this work

Plot[x, {x, 0, 1}, Frame -> True, FrameTicks -> {{All, All}, {None, All}}]

enter image description here

share|improve this answer
Awesome! Thanks! –  okj Aug 22 '13 at 16:54
@okj. You are very welcome. –  Suba Thomas Aug 22 '13 at 17:00
@okj For freaks (like me) who value brevity this form also works: FrameTicks -> {None, None, All, None} or even FrameTicks -> {{}, {}, All, {}} –  Mr.Wizard Aug 22 '13 at 17:06
@Mr.Wizard. Thanks for sharing. I vaguely recall seeing it being used somewhere, but didn't bother to remember it because it is undocumented. So basically both {{left, right}, {bottom, top}} and {bottom, left, top, right} work. –  Suba Thomas Aug 22 '13 at 17:14

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