Trouble with showing the results of a fit on a graph