答案1
显然,我不知道您在这里绘制的是什么样本,所以我只是编造了一些东西。除此之外,想出类似于您的屏幕截图的东西并不难。
\documentclass[tikz,border=3.14mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{tikzpicture}[declare function={%
f(\x,\y)=(\x-0.5)*exp(-\y*\x*\x);},font=\sffamily]
\begin{axis}[ymin=0,ymax=60,xtick={1,2,3,4},xticklabels={Thu,Fri,Sat,Sun},
ytick={0,10,...,60},ymajorgrids]
\addplot[only marks,mark=*,color=blue,samples=27] (1,{30+20*f(rnd,0.1)});
\addplot[only marks,mark=*,color=green!60!white,samples=27] (2,{20+20*f(rnd,0.1)});
\addplot[only marks,mark=*,color=red,samples=27] (3,{25+20*f(rnd,0.1)});
\addplot[only marks,mark=*,color=purple,samples=27] (4,{15+20*f(rnd,0.1)});
\end{axis}
\end{tikzpicture}
\end{document}