resizing waveform plot when corresponding pane is resized