I don't understand why this problem occurs as I can still compile just fine. I'm trying to re-create a diagram. Everything is okay, save for the arrow in the diagram. I'm using TexStudio and MikTex.
Here is the LaTex code I'm using:
\documentclass[dvipsnames]{article}
\usepackage{pgfplots}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{decorations.markings,arrows}
\pgfplotsset{compat=newest}
\def\Point{36.9}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
view={-30}{-30},
axis lines=middle,
zmax=60,
height=12cm,
xtick=\empty,
ytick=\empty,
ztick=\empty
]
\addplot3+[,ytick=\empty,yticklabel=\empty,
mark=none,
thick,
BrickRed,
domain=0:14.7*pi,
samples=400,
samples y=0,
]
({x*sin(0.28*pi*deg(x))},{x*cos(0.28*pi*deg(x)},{x});
\addplot3+[
mark options={color=MidnightBlue},
mark=*
]
coordinates {({\Point*sin(0.28*pi*deg(\Point))},{\Point*cos(0.28*pi*deg(\Point)},{\Point})};
\addplot3+[
mark=none,
dashed,
domain=0:12*pi,
samples=100,
samples y=0
]
({\Point*sin(0.28*pi*deg(\Point))},{\Point*cos(0.28*pi*deg(\Point)},{x});
\addplot3[
mark=none,
dashed
]
coordinates {(0,0,0) ({\Point*sin(0.28*pi*deg(\Point))},{\Point*cos(0.28*pi*deg(\Point)},{0})};
\draw[
radius=80,
decoration={
markings,
mark= at position 0.99 with {\arrow{latex}}
},
postaction=decorate
]
(axis cs:0,10,0) arc[start angle=80,end angle=14] (axis cs:14,0,0);
\node at (axis cs:20,0,30) {$P$};
\node at (axis cs:20,17,0) {$\rho$};
\node at (axis cs:24,0,7) {$z$};
\node at (axis cs:7,12,0) {$\phi$};
\end{axis}
\end{tikzpicture}
\end{document}
Thank you in advance.

\arrowto be defined? Is\vecwhat you are looking for? – Bordaigorl Oct 18 '16 at 15:41\draw[-latex] (axis cs:0,10,0) arc (80:14:80);in place of the arrow you have? In fact, even just replacing the decoration with-latexin your code works if you remove the last point(axis cs:14,0,0)from that path. Is there a reason you need that point there? – Emma Oct 18 '16 at 21:18The Thing is I'm trying to recreate the 'arrow-like' arc seen in the link, however when I compile and run, the arc near 'phi' seems to overshoot and not form an arrow.
Hope this explanation helps.
– bat_wave Oct 19 '16 at 07:00