aha, in which case, np.arange(0, length + 0.01 * dx).reshape(-1, 1) should do the trick.