-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplotProbs.py
More file actions
51 lines (34 loc) · 1.38 KB
/
Copy pathplotProbs.py
File metadata and controls
51 lines (34 loc) · 1.38 KB
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
48
49
50
# comparing different contributions for babyIAXO
import numpy as np
from numpy import loadtxt
from matplotlib import pyplot as plt
plt.style.use("style.txt") # import plot style
# setup plot
fig2 = plt.figure(1) # display is 1920 x 1080 (16:9)
ax2 = fig2.add_axes((.1,.1,.8,.8))
ax2.set(xlim=(1e-4,1e4), ylim=(1e-8,1e9))
alp = 0.6
lw = 4
############## Atlas data #################
# vacuum
dat = loadtxt("data/probVac-50eV.dat")
ax2.plot(dat[:,0],dat[:,1], label='vacuum (50 eV)', color='black', ls='-', lw=lw, alpha=alp)
dat = loadtxt("data/probVac-500eV.dat")
#ax2.plot(dat[:,0],dat[:,1], label='vacuum (500 eV)', color='black', ls=':', lw=lw, alpha=alp)
dat = loadtxt("data/probVac-5keV.dat")
#ax2.plot(dat[:,0],dat[:,1], label='vacuum (5 keV)', color='black', ls='--', lw=lw, alpha=alp)
# gas
dat = loadtxt("data/probGas-50eV.dat")
ax2.plot(dat[:,0],dat[:,1], label='gas (50 eV)', color='red', ls='-', lw=lw, alpha=alp)
dat = loadtxt("data/probGas-500eV.dat")
ax2.plot(dat[:,0],dat[:,1], label='gas (500 eV)', color='red', ls=':', lw=lw, alpha=alp)
dat = loadtxt("data/probGas-5keV.dat")
ax2.plot(dat[:,0],dat[:,1], label='gas (5 keV)', color='red', ls='--', lw=lw, alpha=alp)
# axes
ax2.set_xlabel("Dark photon mass [eV]")
ax2.set_ylabel(r"Back-conversion probablity per $\chi^2$")
ax2.set_xscale('log')
ax2.set_yscale('log')
ax2.legend()
plt.savefig('plots/backConversion.jpg')
plt.show()