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