rowsMax = min(np.amax(ind[0]) + plotBuffer, inputData.shape[0] - 1)