結果 : method used for creating a line graph in python