Line Plots with the selected files displayed. Code factored out