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

Bug still present in version 10 under Windows.

In a recent posting, Belisarius solved a problem related to the display of arrows on the x and y axes by setting ImagePadding->None.

My question is: why do the parameters of Arrowheads interfere with the default settings of ImagePadding? Or is something else going on?

The following illustrates what I am referring to:

Grid[{Table[Plot[1/x^5, {x, -20, 20}, AxesStyle -> Arrowheads[{0, k}]], 
{k, {.0003, .0015, .003, .015, .03}}]}, Frame -> All]


Below are the same plots, with ImagePadding set to None.

Grid[{Table[Plot[1/x^5, {x, -20, 20}, AxesStyle -> Arrowheads[{0, k}], 
ImagePadding -> None], {k, {.0003, .0015, .003, .015, .03}}]}, 
Frame -> All]

more plots

The arrowheads are plotted but too small to be seen at the present scale.

share|improve this question
up vote 12 down vote accepted

It is most likely a bug in the image size calculation routine.

Notwithstanding the arrowheads' sizes are going to be considered as absolute values in image "pixels" for drawing them, when the image size is being calculated the routine reserves enough space to draw the arrows as if they were specified in plot coordinates.

Look in the following example how a 0.05 y axis space is calculated because that is the size of the arrow heads.

Framed@Plot[1/x^5, {x, -9, 9}, AxesStyle -> Arrowheads[.05], 
  Frame -> True, ImagePadding -> All, 
  PlotRange -> {Automatic, {Automatic, .01}}]

Mathematica graphics

share|improve this answer
Seems convincing. Also, I notice that by constraining the maximum y value (through PlotRange) to .01, you heighten the effect. And by changing it to a max of .1, the effect disappears. – DavidC Oct 5 '12 at 17:53
and +1 for not confusing me with zero-length arrowheads... :) – cormullion Oct 5 '12 at 18:31

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.