Add support for log scale axes

This is a PR for #703