X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=research%2FTCS%2F2012-09-07%2Fdeflection%2Fanalysis.py;h=50ab90fa1f496b69bd4c40e1ce226141e29dc252;hb=9a16236a968545d431236cceadc155e485c33335;hp=41f2dafe69e1b3398662cf01fb0327833e263546;hpb=0f1c535d8b786d3cf5b28231135fe1172571425f;p=matches%2Fhonours.git diff --git a/research/TCS/2012-09-07/deflection/analysis.py b/research/TCS/2012-09-07/deflection/analysis.py index 41f2dafe..50ab90fa 100755 --- a/research/TCS/2012-09-07/deflection/analysis.py +++ b/research/TCS/2012-09-07/deflection/analysis.py @@ -6,20 +6,20 @@ lib_path = os.path.abspath('../../') sys.path.append(lib_path) import process -dirs = process.GetDataSets(".") +dirs = process.GetDataSets(".", process.Derivative) -#process.gnuplot("set title \"Vary Deflection Voltage\"") -#process.gnuplot("set xlabel \"DAC (counts)\"") +process.gnuplot("set title \"Vary Deflection Voltage\"") +process.gnuplot("set xlabel \"Vd (Volts)\"") #process.gnuplot("set ylabel \"Normalised S(E)\"") -#process.gnuplot("set key outside right") +process.gnuplot("set key outside right") max_curve = [] 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"))