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

Possible Duplicate:
Remove tick labels, but retain tick marks in RegionPlot (and related functions)

I need to display a 2D graph, say $y=x^2$ with tick-marks along the $x$ and $y$-axes but with no numbers (e.g. 1, 2, 3 ...) indicating these tick-mark values.

What is the most efficient way to perform this task? Thanks!

share|improve this question

marked as duplicate by J. M. Oct 21 '12 at 2:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Would you please clarify the intent of this question? Is this a duplicate?: – Mr.Wizard Oct 20 '12 at 19:49
up vote 3 down vote accepted

For example:

Plot[x x, {x, 0, 1}, Ticks -> ({#, #} &@Array[{1/10 #,} &, 10])]

Mathematica graphics

share|improve this answer
You sure like your styled plots. – Mr.Wizard Oct 20 '12 at 19:48
@Mr.Wizard Yeah! Don't you? – Dr. belisarius Oct 20 '12 at 20:28
Wow, very fancy! I don't even know what # and &@ do, but it works! – QuantumDot Oct 20 '12 at 23:04
How did you make your plot stylized like that? – QuantumDot Oct 20 '12 at 23:05
Honestly? Torn is great but I'd rather you use the actual output of Plot not the "hand drawn" version, which I find confusing and already a little tiring. Are you glad you asked? :^) – Mr.Wizard Oct 21 '12 at 5:10

This isn't clever, but it works:

Plot[x^2, {x, 0, 10}, LabelStyle -> {White}]

Is that sufficient? But, I think the use of FrameTicksStyle in the link in Mr.Wizards answer is better. Alternatively, specifying your own ticks as MW says gives you more control of tick placement. It's easier to use Table to specify the ticks, though.

share|improve this answer
@Mr.Wizard Thanks – George Wolfe Oct 20 '12 at 19:56
Thank you! Very slick! – QuantumDot Oct 20 '12 at 23:04

If you are asking to preserve the Automatic ticks but remove their labels this is a duplicate of: Remove tick labels, but retain tick marks in RegionPlot (and related functions)

If you are asking to place your own ticks without labels you can simply specify an empty string "" or Spacer[0] as the tick label.

Plot[x^2, {x, 0, 5}, 
 Ticks -> {{{1, Spacer[0]}, {2, Spacer[0]}, {3, Spacer[0]}},
           {{5, Spacer[0]}, {15, Spacer[0]}, {25, Spacer[0]}}}

Mathematica graphics

share|improve this answer
Thanks for the heads up on the duplicate. – QuantumDot Oct 20 '12 at 23:05

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