Fixed regression issue with wrong Y axis extremes on logarithmic axes. Closes #1670.