The plot range prevents graphics elements from being placed outside the plot range. Example: Sine should only be plotted between -Pi and +Pi. But I want to place an arrow from 2Pi to 3Pi.
Many thanks for the detailed explanation
Using Show to combine sine curve and arrow:
Show
Show[ Plot[Sin[x],{x,-Pi,Pi}], Graphics@Arrow[{{2 Pi,0.5},{3 Pi,0.5}}], PlotRange->All ]
Or using Epilog
Epilog
epilog = {Red, Thick, Arrow[{{2 Pi, 0}, {3 Pi, 0}}]}; ticks = Range[-Pi, 3 Pi, Pi/2]; Plot[Sin[x], {x, -Pi, Pi}, PlotRange -> {{-Pi, 3 Pi}, Automatic}, Ticks -> {ticks}, Epilog -> epilog]
Thanks
For me this does not work, in the sense that, if I use (say) "{3 Pi, 10}" instead of "{3 Pi, 0}" in epilog, then the arrow is not fully displayed. I have to replace "Automatic" by the explicit range for this to work.