5 lib_path = os.path.abspath('../../')
6 sys.path.append(lib_path)
9 dirs = process.GetDataSets(".", process.Derivative)
12 process.gnuplot("set title \"Vary Deflection Voltage\"")
13 process.gnuplot("set xlabel \"Vd (Volts)\"")
14 #process.gnuplot("set ylabel \"Normalised S(E)\"")
15 process.gnuplot("set key outside right")
18 for p in sorted(dirs.items(), key = lambda e : float(e[0].split("=")[1])):
20 maxval = max(p[1], key = lambda e : e[1])
21 max_curve.append([float(p[0].split("=")[1]), maxval[1], maxval[0]])
22 #process.gnuplot.replot(process.Gnuplot.Data(p[1], title=str(p[0])+"", with_="lp"))
25 process.gnuplot.replot(process.Gnuplot.Data(max_curve, with_="lp", using="1:2", title="Max"))
26 process.gnuplot.replot(process.Gnuplot.Data(max_curve, with_="lp", using="1:3", title="Max position"))