Change the plot to a sine function