updated plot redrawing.