Add an extra sample to the logic edges so that the end sample is visible