I am trying to create 3d plots with several 2d graphs, like in Plotting several 2d functions in a 3d graph. However the end result looks like this:
Using \closedcycle
doesn't help either, as it generates this:
The following is a MWE for the second figure, with a reduced dataset:
\documentclass[12pt]{article}
\usepackage{pgfplots,pgfplotstable}
\pgfplotsset{compat=1.7}
\begin{document}
\begin{tikzpicture}
\pgfplotstableread{
q 1h 2h 3h 4h
0.01138 124.153702 119.550705 117.984253 115.065399
0.089615 4.255316 4.356256 4.253153 4.040073
0.129441 4.262549 3.756256 3.765975 4.120948
0.254584 2.837865 3.107194 2.983951 2.531952
0.298655 2.638327 2.848219 2.792608 2.729832
}\data
\begin{axis}[
zmode=log,
log origin z=0,
area plot/.style={
fill opacity=0.75,
draw=blue!70!violet,thick,
fill=blue!70!violet!50,
mark=none,
}
]
\pgfplotsinvokeforeach{4,3,2,1}{
\addplot3 [area plot] table [x=q, y expr=#1, z=#1h] {\data} \closedcycle;
}
\end{axis}
\end{tikzpicture}
\end{document}
How can I get this straight?
Table '<inline_table>' appears to have too many colum ns in line 2: Ignoring '121.330681'
). Could you fix that?