I have to make a gaussian distribution of some physics data using pgfplots. the data are 5, all between 21.00 and 22.00 with mu=21.52 e sigma=0.013. so i want to draw the function of the gaussian and have a mark corresponding to my data (this is the part i can do) may i have some help?
\begin{document}
\pgfmathdeclarefunction{gauss}{3}{
\pgfmathparse{1/(#3*sqrt(2*pi))*exp(-((#1-#2)^2)/(2*#3^2))}%
}
\begin{tikzpicture}
\begin{axis}[axis x line=bottom,axis y line=none,,xmin=21,xmax=22, title=Normal data distribution]
\addplot {gauss(x,21,1)};
\end{axis}
\end{tikzpicture}


xmin=21,xmax=22you wont get any data points in the axis. Set e.g.domain=21:22, or whatever you need. – Torbjørn T. Sep 07 '17 at 12:04\documentclassand including all packages and settings needed to reproduce the problem etc. – Schweinebacke Sep 07 '17 at 12:09