-
Notifications
You must be signed in to change notification settings - Fork 1
/
nmrTesting.py
47 lines (40 loc) · 1.71 KB
/
nmrTesting.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from nmr import *
import fornotebook as fnb
fullPath = '/Users/StupidRobot/exp_data/ryan_emx/nmr/141204Tests/'
close('all')
fl = fnb.figlist()
#overNight,fl.figurelist = integrate(fullPath,[42],integration_width=75,first_figure=fl.figurelist,pdfstring='overNight')
#overNight.data *= -1
#
#dayTime,fl.figurelist = integrate(fullPath,[41],integration_width=75,first_figure=fl.figurelist,pdfstring='dayTime')
#dayTime.data *= -1
fig = figure(figsize=(15,8))
plot(overNight.runcopy(real).set_error(None),'.',alpha = 0.5,label='real overNight')
plot(overNight.runcopy(abs).set_error(None),'.',alpha = 0.5,label='abs overNight')
plot(dayTime.runcopy(real).set_error(None),'.',alpha = 0.5,label='real dayTime')
plot(dayTime.runcopy(abs).set_error(None),'.',alpha = 0.5,label='abs dayTime')
legend(loc=3,prop={'size':15})
xlabel(r'$\mathtt{run\/ number}$',fontsize=30)
xticks(fontsize=20)
yticks(fontsize=20)
ylabel(r'$\mathtt{integration\/ val}$',fontsize=30)
title(r'$\mathtt{NMR\/ Stability\/ Measurement}$',fontsize=30)
fig.patch.set_alpha(0) # This makes the background transparent!!
giveSpace()
tight_layout()
show()
oNavg = nddata(average(overNight.data)).set_error(std(overNight.data)).labels('value',array([0]))
dTavg = nddata(average(dayTime.data)).set_error(std(dayTime.data)).labels('value',array([1]))
fig = figure(figsize=(15,8))
plot(oNavg,'o',label='overNight Average')
plot(dTavg,'o',label='dayTime Average')
legend(loc=3,prop={'size':15})
xlabel(r'$\mathtt{run\/}$',fontsize=30)
xticks(fontsize=20)
yticks(fontsize=20)
ylabel(r'$\mathtt{integration\/ val}$',fontsize=30)
title(r'$\mathtt{NMR\/ Stability\/ Measurement}$',fontsize=30)
fig.patch.set_alpha(0) # This makes the background transparent!!
giveSpace()
tight_layout()
show()