I would like to draw a plot and put arrow heads pointing in the direction of the plot instead of marks.
My first idea was to use the quiver option from pgfplots by
duplicating and stagering the columns of my data table.
I was not succesful with thisowever.
In addition, this require some additional manipulation and is not very
felxible if it becomes, for instance, necessary to draw only a fex
arrows.
My second idea was to get the nodes and draw a tikz path.
i thought about nodes near coord but did not find any means to
retreive the nodes names outside the axis command.
I ended up with the following code using decoration (as in this question) :
\documentclass{article}
\usepackage{pgfplots}
\usetikzlibrary{decorations.markings}
\begin{document}
\pgfplotstableread {%
1 0
0.9424764947 0.07142857143
0.8807513856 0.1428571429
0.814278019 0.2142857143
0.7433146111 0.2857142857
0.6680059078 0.3571428571
0.5883915727 0.4285714286
0.5054583078 0.5
0.4203175805 0.5714285714
0.3328127843 0.6428571429
0.2485549667 0.7142857143
0.1694124286 0.7857142857
0.09704848952 0.8571428571
0.03951561078 0.9285714286
0 1
}\table
\begin{tikzpicture}[baseline, trim axis left, trim axis right]
\pgfplotsset{ref/.style={mark=o}}
\begin{axis}
\addplot[ref] table[x index=0, y index=1] {\table}
[postaction={decorate, decoration={markings,
mark=between positions 1/15 and 1 step 1/15 with {\arrow[red,line width=.5pt]{>};}
}}]
;
\end{axis}
\end{tikzpicture}
\end{document}
Here is the result:

The problem is to get the red arrows where the circles are. How could this be done?
The two following question are related but my main problem her is more to get the nodes from the table input.
Decorate path with arrows at nodes
How to decorate a path with arrows at certain coordinates?
The following question that I asked to solve a different problem happens to be applicable here:
naming-the-nodes-of-nodes-near-coords
Indeed, once the node are names, some pgf path can be traced to link them.
