Adding basic subsampling to waveform plot.