Let's try plot f and h over xi
rearrange the code