Update the figure