correct figure plot