Add fit of polynomial function