Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

It is easy for me to add arrows to the axes of the a figure by taking advantage of AxesStyle -> Arrowheads[] when the differences between the horizontal and vertical coordinates is small. For instance, by using

Plot[1/x, {x, -20, 20}, AxesStyle -> Arrowheads[{0.0, 0.03}]]

the arrows appear at both the horizontal and vertical axis. However, I don't know how to add arrows to the ones whose differences are big. For example, when the following program is run

Plot[1/x^5, {x, -20, 20}, AxesStyle -> Arrowheads[{0.0, 0.00003}]]

the arrows cannot be seen obviously? I want to know how I can make the arrows to be found evidently just as the previous one?

share|improve this question
@rm: graphics might be a better fit; OP's question deals with primitives, as opposed to the plot itself. – J. M. Oct 5 '12 at 15:22
@J.M. The choice of primitives is not the issue here... it's just one of padding. Feel free to revert if you think graphics is better. – R. M. Oct 5 '12 at 15:33

1 Answer 1

up vote 13 down vote accepted
Plot[1/x^5, {x, -20, 20}, AxesStyle -> Arrowheads[{0.0, 0.05}], 
     ImagePadding -> None]

Mathematica graphics

share|improve this answer
Do you need the first 0.0? – cormullion Oct 5 '12 at 15:21
@cormullion only as a placeholder for specifying for example Arrowheads[{-0.05, 0.05}] later – belisarius has settled Oct 5 '12 at 15:23
I know that ImagePadding was needed but I don't see why, nor why the default ImagePadding depends on the parameters of Arrowhead. – David Carraher Oct 5 '12 at 15:24
@DavidCarraher I've to think about that. Probably it's due to the time in which the image size is determined (something in the plot scaling may be still unknown). You may post a question :) – belisarius has settled Oct 5 '12 at 15:28

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.