Add support for log scale axes

This is a PR for #703 
@tabchas this code is actually not correct, my apologies. I am going to go ahead and merge this and apply a hot fix on master.