Calculate Y max and min values for scaled graph taking in account nearby pints