--- /dev/null
+#!/usr/bin/python -u
+
+
+import os, sys
+lib_path = os.path.abspath('../../')
+sys.path.append(lib_path)
+import process
+
+dirs = {}
+
+for f in os.listdir("."):
+ if os.path.isdir(f) == True:
+ data_set = []
+ for datafile in os.listdir("./"+str(f)):
+ data_set.append(process.MaxNormalise(map(lambda e : [e[1], e[2]], process.GetData("./"+str(f)+"/"+str(datafile)))))
+
+ avg = process.Average(data_set)
+ dirs.update({f : avg})
+
+process.gnuplot("set title \"Vary Focus Voltage\"")
+process.gnuplot("set xlabel \"DAC (counts)\"")
+process.gnuplot("set ylabel \"Normalised S(E)\"")
+
+for p in dirs.items():
+ if (len(p[1]) > 0):
+ process.gnuplot.replot(process.Gnuplot.Data(p[1], title=str(p[0])+"", with_="lp"))
+
+sys.stdin.readline()