Unabhängig von allem anderen: gib compat mit an, sonst wird eine Kompatibilitätseinstellung zu Version vor 1.3 verwendet.
Code:
\pgfplotsset{compat=1.13}
Seit Version 1.11 ist axis cs das Standardkoordinatensystem, weshalb man mit aktuellen Versionen die Angabe von axis cs: bei den Koordinaten weg lassen kann. Die geschweifte Klammer kannst Du nach dem Laden der TikZ Bibliothek decorations.pathreplacing einfügen.
Code:
\documentclass[12pt,paper=a4,ngerman]{scrartcl}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{pgfplots}
\pgfplotsset{compat=1.13}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{figure}[htb]
\centering
\begin{tikzpicture}
\begin{axis}
[
axis lines=middle,
axis line style={->},
xlabel={x},
ylabel={y},
xmin=-4,xmax=4,
ymin=0,ymax=0.5,
grid=both,
grid style={line width=.1pt, draw=gray!10},
major grid style={line width=.2pt,draw=gray!50},
minor tick num=4,
legend pos = outer north east
]
\addplot
[
very thick,
cyan!50!black,
mark=none,
smooth
]
{1/(0.92600*sqrt(2*pi))*exp(-x^2/(2*0.92600^2))};
\addlegendentry{$\mu=0$, $\sigma = 0,926$}
\draw[red,very thick,dashed] (-3.5,0) -- (-3.5,0.09)coordinate(bl);
\draw[red,very thick,dashed] (-2.5,0) -- (-2.5,0.09)coordinate(br);
\draw[very thick]
(bl)--([yshift=2pt]bl)
(br)--([yshift=2pt]br)
;
\draw[very thick,decorate,decoration={brace,amplitude=3pt}]
([yshift=2pt]bl)
--node[above,yshift=2pt]{Text}
([yshift=2pt]br)
;
\end{axis}
\end{tikzpicture}
\end{figure}
\end{document}
Lesezeichen