I wanted to get this Gaussian plot with the boxes to the bottom of the axis like this:
Here is the code that I have so far:
\documentclass[11pt]{book}
\usepackage{pgfplots}
\pgfmathdeclarefunction{gauss}{2}{%
\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}%
}
\begin{document}
\begin{figure}
\begin{center}
\begin{tikzpicture}
\begin{axis}[
no markers,
domain=-6:6,
samples=100,
axis lines*=left,
xlabel=$x$,
ylabel=$G(x)$,
% every axis y label/.style={at=(current axis.above origin),anchor=south},
every axis x label/.style={at=(current axis.right of origin),anchor=west},
height=5cm, width=12cm,
%xtick=\empty,
%ytick=\empty,
enlargelimits=false, clip=false, axis on top,
grid = major,
]
\addplot [very thick,blue!50!black] {gauss(0,1.5)};
\end{axis}
\end{tikzpicture}
\caption{Bell Shaped Gaussian Distribution}
\end{center}
\end{figure}
\end{document}



xticklabel=\empty? (notxtickto preserve thegrid) – Guilherme Zanotelli Sep 20 '16 at 06:23