plotting the data and comparing methods