TGraphErrors overruns the axis


When I plot a TGraphErrors, I find that if I set the axis user range smaller than the TGraphErrors, then the error bands drawn “overrun” the axis (i.e. they are drawn even outside the axis), instead of being cut off at the axis as I would like.

Is there an easy way to fix this?


Can you send an example macro reproducing this problem ?
On which machine are you running ?
With which root version ?