logy now correctly calculated with log10 not log (natural log)