8671f8f038f086da1d0cd27d6bfaa1dcea865e86
[matches/honours.git] / research / analysis and stuff / tcs scripts / au_vs_blackau.py~
1 #!/usr/bin/python
2
3 #Deposition for the FIRST sample
4
5 from process import *
6 import odict
7 import time
8
9 smooth = [4, 3]
10
11 tcsdir = "../../research/TCS/"
12 imagedir = "au_vs_blackau/"
13
14 os.system("mkdir -p " + imagedir.strip("/"))
15
16 toplot = odict.odict([
17         ("BlackAu", [tcsdir+"2012-09-13/BlackAu/average.dat",1]),
18         ("Au on BlackAu", [tcsdir+"2012-09-13/Au on BlackAu/average.dat",1])
19
20 ])
21
22 # I(E) (normalised) data
23 gnuplot.reset()
24 gnuplot("set term postscript colour")
25 gnuplot("set output \""+imagedir+"normalised_data.eps\"")
26 gnuplot("set title \"Au vs Black Au I(E) curves\"")
27 gnuplot("set key top left")
28
29 for f in toplot.items():
30         d = ShowData(f[1][0], title=f[0], plot=gnuplot.plot, calibrate=True, normalise=True)
31
32
33
34 time.sleep(1)
35
36 # TCS (normalised) data
37 gnuplot.reset()
38 gnuplot("set term postscript colour")
39 gnuplot("set output \""+imagedir+"tcs_normalised.eps\"")
40 gnuplot("set title \"Au vs Black AuS(E) curves\"")
41 gnuplot("set key top right")
42
43 for f in toplot.items():
44         d = ShowTCS(f[1][0], title=f[0], plot=gnuplot.plot, calibrate=True, normalise=True, with_="lp", smooth=smooth)
45
46
47 time.sleep(1)
48
49 #os.system("cd "+imagedir+"; for i in *.eps; do epstopdf --autorotate=All $i; done; rm *.eps")
50

UCC git Repository :: git.ucc.asn.au