I would like to plot a 3D histogram with x and y=continuous variable and z=categorical(nominal) variable. I tried to show the information in a superimposed arrangement but I think it looks very messy and unclear. I can only use black/white or gray shades. Could I get some help with this?
this would be the sort of chart I am thinking of (no color though).

The code I used so far is:
\documentclass[border=1mm]{standalone}
\usepackage{helvet}
\usepackage[eulergreek]{sansmath}
\usepackage{pgfplots}
\pgfplotsset{ compat=1.9, every axis/.style={axis on top}}
\usetikzlibrary{patterns}
\makeatletter
\begin{document}
\begin{tikzpicture}
\begin{axis}[ybar,
ymax=8,
xticklabel style = {font=\sansmath\sffamily},
yticklabel style = {font=\sansmath\sffamily},
xtick pos=left,
ytick pos=left,
every axis label = {font=\sansmath\sffamily},
xlabel={$LogLC_{50}$ mg/L},
ylabel={Frequency},
legend style = {anchor=north east,
nodes={scale=0.75,transform shape},
font=\sansmath\sffamily},
label style = {font=\sansmath\sffamily},
enlarge y limits=-0.5,
]
\addplot+[hist={data=x,bins=16,data max=2,data min=-2.6},black!90, fill=black!95 ,opacity=0.7]
table [y expr=1] {
0.944
1.093
-0.678
-1.409
-0.209
-0.672
-1.921
0.220
0.696
0.718
-0.633
-0.575
-0.860
-0.205
1.310
0.220
0.696
0.718
};
\addplot+[hist={data=x,bins=16,data max=2,data min=-2.6},black!55, fill=black!55 ,opacity=0.7]
table [y expr=1] {
-1.337
-1.161
-0.284
0.699
1.000
1.000
-1.420
-1.959
-1.481
-1.292
-1.174
-1.252
1.102
1.384
1.626
0.857
0.137
-0.155
-0.319
-0.155
0.318
-0.444
-0.971
-2.046
-1.721
-1.032
-1.086
-1.658
-0.951
-0.943
-2.523
-0.903
-1.523
1.102
1.384
1.626
};
\addplot+[hist={data=x,bins=16,data max=2,data min=-2.6},black!15, fill=black!15, opacity=0.7]
table [y expr=1] {
-0.281
-0.879
-0.223
-0.449
-0.599
-0.721
-0.170
-1.215
-0.526
1.057
1.643
1.918
-0.631
-0.296
-0.456
-0.352
-0.762
-0.570
-0.292
-0.504
1.057
1.643
1.918
};
\addlegendimage{empty legend},
\addlegendentry{Cr(VI)},
\addlegendentry{Cd(II)},
\addlegendentry{Ni(II)},
\end{axis}
\end{tikzpicture}
\end{document}
Thank you in advance for the help!
