Corrects data range & types for plot1