better waveform plotting