Now we have converted the plotting routine into a function that
takes only one argument: directory of the data file to be plotted.
The figures are saved in ./figs/ which is a local director