update figure position