auto-set y range to only the values in the visible x range