Resize of plot is working