Formatting and updting figure