x-array, y-array, Flag data points with the cursor - return an array of flags