Updating dimensions of plots