X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=research%2FTCS%2F2012-09-07%2Ffocus%2Fanalysis.py;h=ee4ae726f88d20da9118386bb72a0304e6a725d4;hb=42977a93534c13419167a935c5ff9b1f1ab00019;hp=f897b2f0a58ca9f7ce5bf7024b3ba09eda70a9c7;hpb=0f1c535d8b786d3cf5b28231135fe1172571425f;p=matches%2Fhonours.git diff --git a/research/TCS/2012-09-07/focus/analysis.py b/research/TCS/2012-09-07/focus/analysis.py index f897b2f0..ee4ae726 100755 --- a/research/TCS/2012-09-07/focus/analysis.py +++ b/research/TCS/2012-09-07/focus/analysis.py @@ -10,13 +10,14 @@ dirs = process.GetDataSets(".", process.Derivative) process.gnuplot("set title \"Vary Focus Voltage\"") -process.gnuplot("set xlabel \"DAC (counts)\"") +process.gnuplot("set xlabel \"Vf (Volts)\"") #process.gnuplot("set ylabel \"Normalised S(E)\"") process.gnuplot("set key outside right") max_curve = [] -include_range=[-7.00,-5.00] +#include_range=[-7.00,-5.00] +include_range=[-400,400] for p in sorted(dirs.items(), key = lambda e : float(e[0].split("=")[1])): value = float(p[0].split("=")[1]) @@ -24,9 +25,9 @@ for p in sorted(dirs.items(), key = lambda e : float(e[0].split("=")[1])): if (len(p[1]) > 0): maxval = max(p[1], key = lambda e : e[1]) max_curve.append([float(p[0].split("=")[1]), maxval[1], maxval[0]]) - process.gnuplot.replot(process.Gnuplot.Data(p[1], title=str(p[0])+"", with_="lp")) + #process.gnuplot.replot(process.Gnuplot.Data(p[1], title=str(p[0])+"", with_="lp")) -#process.gnuplot.replot(process.Gnuplot.Data(max_curve, with_="lp", using="1:2", title="Max")) -#process.gnuplot.replot(process.Gnuplot.Data(max_curve, with_="lp", using="1:3", title="Max position")) +process.gnuplot.replot(process.Gnuplot.Data(max_curve, with_="lp", using="1:2", title="Max")) +process.gnuplot.replot(process.Gnuplot.Data(max_curve, with_="lp", using="1:3", title="Max position")) sys.stdin.readline()