improved auto-scaling

auto-scaling on y-axis now only scales to data within the viewing range
(rather than the complete history)