[Tex/LaTex] TikZ & PGFPlots: adding a TikZ 3d axis into a pgfplot

3dpgfplotstikz-pgf

\documentclass[tikz]{standalone}
\usepackage{tikz-3dplot}
\usepackage{pgfplots}
\pgfplotsset{compat = 1.8}

\begin{document}
\tdplotsetmaincoords{60}{130}
\begin{tikzpicture}[tdplot_main_coords]
  \begin{axis}[
    samples = 1000,
    domain = -pi / 2:4 * pi,
    samples y = 0,                                                       
    no markers,
    axis lines = none
    ]
    \draw[-latex] (axis cs: 0, 0, 0) -- (axis cs: 3, 0, 0);
    \draw[-latex] (axis cs: 0, 0, 0) -- (axis cs: 0, 3, 0);
    \draw[-latex] (axis cs: 0, 0, 0) -- (axis cs: 0, 0, 5);
    \addplot3 ({cos(deg(x))}, {sin(deg(x))}, {.5 * x});
  \end{axis}
\end{tikzpicture}
\end{document}

enter image description here

How can I have the tdplot_main_coords passed into pgfplots so my axis isn't all crazy?

Best Answer

It seems to be as if tikz-3dplot angles \tdplotsetmaincoords{h}{v} can be transformed into those of pgfplots by means of view={H}{V} where H=h+45, V=v-90. In your case, you would have view={115}{20}. At least it seems so.

Regarding the comment why the -latex arrow head is ignored: I suppose it is because pgfplots has clipping active. Adding the option clip=false might help here (please correct me if I'm wrong).