check_range function

Updates the axis ranges of an ENA plot based on the plotted data.