adjust legend to make figure smaller.