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

How do I call AxesStyle->Arrowheads[ ] in order to control whether or not an arrow appears on each of the four ends of the axes in a Plot, and if it does appear how to control the size of each one?

Here's an example:

Plot[1/x^5, {x, -20, 20}, AxesStyle -> Arrowheads[{-.02, 0}], 
ImagePadding -> None]

It seems Axes->Arrowheads[.05] makes all 4 of them appear and appear at the same size, while Axes->Arrowheads[{-.05,.05}] makes them appear in "pairs". But sometimes I just want the "north" and "west" axes to have arrows and nothing else.

share|improve this question
up vote 3 down vote accepted

AxesStyle takes a list {x style, y style} so for "north" and "west" arrows only:

Plot[1/x^5, {x, -20, 20}, 
 AxesStyle -> {Arrowheads[{-0.05, 0}], Arrowheads[{0, 0.05}]}, 
 ImagePadding -> 20]

enter image description here

share|improve this answer
Ah, thanks. I had tried Arrowheads[{{a,b},{c,d}}] when I should have been using Arrowheads[{a,b}],Arrowheads[{b,c}] – JohnD Oct 21 '13 at 22:50

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.