Take average when graph zoomed in to make smooth curve