Correct plot ranges