Add logarithmic scale function

here's a pull request to switch on the logarithmic scale function