Plot of a function from x=0 to x=1 is not shown