Do the calculation on the actual set instead of dataToPlot