You can use a shift register in while loop to act as a buffer to feedback the signal. When you press a button, keep the original data on the register and use merge signal to plot your new signal with the old signal on the same graph. Hope this help.
Bill
