Fix infinite lines, datarange for plot updates