Added function to add spaghetti lines to plot