Issue #5 : preserve zoom level when switching log/linear scale.

Not as clean as I'd like, but it's OK, and it works (please confirm).