How does one insert arbitary placed arrows along a curve/function
defined in pgfplots using the \plot command. I realise the last sentence became a tad long.. Below is a simple code for which I am trying to insert arrows, if I had
points to go after, I could have used something like Pgfplots: Drawing Arrows Along Contour Plots
or decorations. But this does not work here...

Earlier i asked the same question with the draw function Add arrows to a smooth tikz function, and obtained a really good answer.
However implementing the solution directly to the code under gives missfortunate 'stack overflow' error. To summarize

Is there a way to place a number of arrows a long a function / curve made with pgfplots?

1 Answer
1

As you didn't answer my comment yet, I will just post my solution to the problem I think you are trying to solve.

You may just use the code, given in my answer to this question: Add arrows to a smooth tikz function
Next you will need to remove the smooth statement, because it will interfere with decorate and give you nice errors like ? Dimension too large. This won't have an effect on the smoothness of your drawing, because you already use sufficiently many samples.