I have a scatter plot but I want to make a 3D plot where the points will be still in the XY plane but there will be a line over every point which will have different values for different (x,y) point.
I could not find any suitable image so I had to draw one. I have tried to modify the code available in pgfplots.pdf (I have mentioned below), but could not manage to get what I am looking for. Any help? Thanks.
\documentclass[tikz, border=2mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.12}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
view={120}{40},
width=420pt,
height=420pt,
%grid=major,
%z buffer=sort,
xmin=0,xmax=19,
ymin=0,ymax=19,
zmin=0,zmax=19,
enlargelimits=upper,
xtick={1,5,...,20},
ytick={1,5,...,20},
ztick={1,5,...,20},
xlabel={$x$},
ylabel={$y$},
zlabel={$z$},
%point meta={x+y+z+3},
%colormap={summap}{
% color=(black);
% color=(blue);
%color=(black); color=(white)
%color=(orange) color=(violet)
%color=(red)
%},
%scatter/use mapped color={
% draw=mapped color,fill=mapped color!70},
]
% `pgfplots_scatter4.dat' contains a large sequence of
% the form
% l_0 l_1 l_2
% 1 6 -1
% -1 -1 -1
\addplot3[only marks,scatter,mark=cube*,mark size=7]
table {s.dat};
\end{axis}
\end{tikzpicture}
\end{document}