2
$\begingroup$

When arrowheads are added to the axes, the ends of the ticks are covered by the arrowheads, e.g., ticks for $1$ disappear in the plot below,

Plot[x^2, {x, 0, 1}, AxesStyle -> Arrowheads[{0.03}]]

I would like to extend axis length a little bit to avoid the problem. How can that be achieved?

arrowheads cover the ticks

$\endgroup$
3
$\begingroup$

I would like to extend axis length a little bit to avoid the problem

You can manually extend the plotted range using PlotRange

Plot[x^2, {x, 0, 1}, AxesStyle -> Arrowheads[{0.03}], 
 PlotRange -> {{0, 1.1}, {0, 1.1}}]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.