drawing lines on waveform