Update a figure.