Added the file reading code to each plot script