答案1
我不确定这些点是否是散点图。而且画点很容易。所以我只是用范数分布曲线绘制了箱线图。
\documentclass{article}
\usepackage{pgfplots}
\usepackage{tikz}
\pgfplotsset{compat=1.8}
\usepgfplotslibrary{statistics}
\begin{document}
\pgfmathsetmacro{\offset}{0.05}
\begin{tikzpicture}[declare function={gauss(\x,\y,\z)=\offset+1/(\y*sqrt(2*pi))*exp(-((\x-\z)^2)/(2*\y^2));}]
\begin{axis}[samples=101,smooth,height=8cm,
boxplot/draw direction=y]
\addplot [domain=-3:3] ({1+gauss(x,1.2,0)},1+x);
\addplot+ [boxplot prepared={box extend=0.3,draw position=1, lower whisker=-0.5, lower quartile=0.1, median=0.5, upper quartile=.9, upper whisker=2}, ] coordinates {};
\addplot [domain=-3:3] ({3+gauss(x,1.2,0)},x);
\addplot+ [boxplot prepared={draw position=3, lower whisker=-0.5, lower quartile=0.1, median=0.5, upper quartile=.9, upper whisker=2,box extend=0.3}, ] coordinates {};
\end{axis}
\end{tikzpicture}
\end{document}