\documentclass[a4paper,11pt,fleqn]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{pgf,tikz}
\usepackage{graphicx}
\usepackage{array}
\usepackage[ngerman]{babel}
\usepackage{gauss}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\usetikzlibrary{positioning,fit,calc}
\pgfmathdeclarefunction{gauss}{2}{\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\begin{axis}[scale only axis,
axis lines =middle,
ylabel style = {align=left},
inner axis line style={=>},
width=10cm,height=6cm,
ymin=0,ymax=0.45,
xmin=496,xmax=504,
axis line style = thick,
xtick={497,498,499,500,501,502,503},
ytick={0.1,0.2,0.3,0.4},
every axis x label/.style={at={(current axis.right of origin)},anchor=west},
every axis y label/.style={at={(current axis.north)},above=0.5mm},
xlabel={$x$},
ylabel={$f(x)$},
axis on top]
\addplot [domain=496:504,samples=500,red,thick] {gauss(500,16/16)};
\end{axis}
\end{tikzpicture}
\end{figure}
\end{document}
My problem: Try to produce two different plots
First plot the y-axis should intersect the x-axis at 496, thus on the left side and the label should be on top of the y-axis (picture)
Second plot the y-axis should intersect the x-axis at its middle (500) and the label should be on top



