moved plotNorm into general f(x)