Updating the figure