added a plot function

the plot is from (0,0) to the given input point