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.

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

1 Answer

up vote 2 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
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.