fix off-by-one iteration over plot visibility after zoom