draw multiple lines with function segments. In picture code not work

Hi, can you post some code instead of a (sideways) screenshot?