You could use options when drawing, such as
\tkzDrawCircle[R,very thick](S,\rSN pt)
\tkzDrawPoints[color=black,shape=circle,fill=black](D,E,F,S)
or set styles, such as by \tkzSetUpPoint
and \tkzSetUpLine
, which are explained in the tkz-euclide manual.
Regarding the labels, you could set their style via an option to the tikzpicture
or by \tikzset
, such as
\begin{tikzpicture}[scale=1.5,label style/.style={font=\Large}]
By this, the picture changes to
You are not getting values between 0 and 1 for the y
-axis due to the multiplicative factor 1/(#2*sqrt(2*pi))
in the expression for the funtion. Using
ytick={0.5, 1.0}
gives values that are too small, for the actual range that takes values from 0 to approx. 20; . Use an appropriate range of values in the y-axis:
\documentclass{article}
\usepackage{pgfplots}
%\pgfplotsset{compat=1.10}
\pgfmathdeclarefunction{gauss}{2}{% normal distribution where #1 = mu and #2 = sigma
\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}%
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
no markers, domain=2.1:2.3, samples=100,smooth,
axis lines*=left,
height=5cm, width=12cm,
xtick={2.12, 2.14, 2.16, 2.18, 2.2, 2.22, 2.24, 2.26, 2.28},
ytick={4.0,8.0,...,20.0},
enlargelimits=upper, clip=false, axis on top,
]
\addplot{gauss(2.2,0.0179)};
\end{axis}
\end{tikzpicture}
\end{document}
Or, to get a proper range between 0 and 1, suppress the factor in the defining equation:
\documentclass{article}
\usepackage{pgfplots}
%\pgfplotsset{compat=1.10}
\pgfmathdeclarefunction{gauss}{2}{% normal distribution where #1 = mu and #2 = sigma
\pgfmathparse{exp(-((x-#1)^2)/(2*#2^2))}%
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
no markers, domain=2.1:2.3, samples=100,smooth,
axis lines*=left,
height=5cm, width=12cm,
xtick={2.12, 2.14, 2.16, 2.18, 2.2, 2.22, 2.24, 2.26, 2.28},
enlargelimits=upper, clip=false, axis on top,
]
\addplot{gauss(2.2,0.0179)};
\end{axis}
\end{tikzpicture}
\end{document}
Best Answer
Annotate at your leisure...