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 want the numbers along the axis to be larger than the default value. Can this be done?

The reason I am asking is because I frequently make charts in Mathematica and use them in Word. I export the charts as bitmap files and then paste the images in Word. The default text size for the axis is too small to be as clearly legible as I would like them to be when the chart is in bitmap form.

My problem would be solved if

  • there is a better way to use Mathematica charts in Word
  • I can get larger text numbers along the axis of the chart .

As an example, the following gives a plot of $\sin(x)$. How do I make the numbers on the axis larger in size?

Plot[Sin[x], {x, 0, 22}, PlotLabel -> Style["sin(x)", FontSize -> 18],
    Background -> LightYellow]
share|improve this question
1  
How about adding: TicksStyle -> FontSize -> 18 or similar? (and I don't use Word) –  Pinguin Dirk Apr 23 '13 at 6:18
    
Related (and useful): mathematica.stackexchange.com/q/3247/5 –  rm -rf Apr 23 '13 at 13:31

1 Answer 1

up vote 5 down vote accepted
Plot[Sin[x], {x, 0, 10}, TicksStyle -> Large]

For something not quite so big, use: Larger, or choose your own font size with:

Plot[Sin[x], {x, 0, 10}, TicksStyle -> Directive[FontSize -> 16]]

Edit: Further to @YvesKlett helpful comment, one can even choose different styles for the x and y axes:

Plot[Sin[x], {x, 0, 10}, TicksStyle -> {{FontSize -> 16, Orange}, {FontSize -> 22, Green}}]

share|improve this answer
3  
The introduction to Directive might be even more instructive if used with two arguments, because for just one argument it works just as well without it. –  Yves Klett Apr 23 '13 at 6:58

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.