
나는 Jake를 따라가려고 노력했다.TikZ-PGF에 종 모양의 곡선 그리기약간의 수정으로.
1) 컷오프에 빨간색 점선이 있는 일변량 정규 cdf를 원하지만 점선이 어색해 보이는 경우도 있습니다.
2) y축 레이블이 y축이 아닌 그림 중앙에 있는 이유는 무엇입니까?
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\pgfmathdeclarefunction{gauss}{2}{%
\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}%
}
\begin{tikzpicture}
\begin{axis}[
no markers, domain=-4:4, samples=100,
axis lines*=left, xlabel=$x$, ylabel=$y$,
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=4cm, width=7cm,
xtick={-3,-2,-1,0,1,2,3}, ytick=\empty,
enlargelimits=false, clip=false, axis on top,
grid = none
]
\draw[dashed, red, thick] (axis description cs: 1.32,0) -- (axis description cs:1.32, 1);
\addplot [fill=cyan!20, draw=none, domain=-4:1.32] {gauss(0,1)} \closedcycle;
\addplot [very thick,cyan!50!black] {gauss(0,1)};
\end{axis}
\end{tikzpicture}
\end{document}