Resize figure.