Update figure with new data and fix legend placement