update the height of plot