Code: Select all
\begin{tikzpicture}
\begin{axis}[
3d box=complete,
grid=major,
xlabel=$x$,
ylabel=$y$,
zlabel=$z$,
samples=5
]
\addplot3[color=red,domain=0:200,y domain=1:1,samples=201,samples y=1,variable y=\y] {3};
\addplot3[color=green,domain=0:200,y domain=2:2,samples=201,samples y=1,variable y=\y] {5};
\end{axis}
\end{tikzpicture}
{\y}
, but that errors.I basically want to render lines in 3D space and it doesn't seem to work. I've also done several dozen Internet searches and read through the documentation before posting this.