2 import matplotlib.pyplot 
as plt
 
    9 fig = plt.figure(figsize=(5,5))
 
   12 folders = np.array(os.listdir(
'.'))
 
   13 folder_mask = list(map(
lambda x: 
'bbn_' in x, folders))
 
   14 folders = np.array(folders)[folder_mask]
 
   17 etas = np.array(list(map(
lambda x: float(x.replace(
'bbn_',
'')), folders)))
 
   18 key = np.argsort(etas)
 
   20 folders = folders[key]
 
   32     A,Z,N,Y,X = np.loadtxt(path+
'/finab.dat',unpack=
True)
 
   35     hydrogen = Y[(A==1) & (Z==1)][0]
 
   36     he       = Y[(A==4) & (Z==2)][0]
 
   38         d    = Y[(A==2) & (Z==1)][0]
 
   42     he3      = Y[(A==3) & (Z==2)][0]
 
   43     li7      = Y[(A==7) & (Z==3)][0]
 
   45         be7  = Y[(A==7) & (Z==4)][0]
 
   48     hydrogren_list.append(hydrogen)
 
   49     he_list.append(he/hydrogen)
 
   50     d_list.append(d/hydrogen)
 
   51     he3_list.append(he3/hydrogen)
 
   52     li7_list.append((li7+be7)/hydrogen)
 
   56 plt.axvspan(5.96e-10,6.22e-10,alpha=0.5,color=
'k')
 
   57 plt.text(5.5e-10,1e-6,
'Planck Satellite',color=
'k',ha=
'center',va=
'top',rotation=90)
 
   64 plt.axhspan( (2.527- 0.03) * 10**(-5), (2.527+ 0.03) * 10**(-5),color = 
'tab:orange',alpha=alpha)
 
   65 plt.text(1.58e-10,1e-3,
'D',color=
'tab:orange',ha=
'center')
 
   69 plt.axhspan((1.1-0.2)*10**(-5),(1.1+0.2)*10**(-5),color = 
'tab:green',alpha=alpha)
 
   70 plt.text(6e-12,3e-4,
'He 3',color=
'tab:green',ha=
'center')
 
   75 hydrogren_list = np.array(hydrogren_list)
 
   76 ind = np.argmin(abs(etas - 6.275e-11))
 
   77 h = hydrogren_list[ind]
 
   78 plt.axhspan((0.2561-0.0108)/4./h,(0.2561+0.0108)/4./h,color = 
'tab:blue',alpha=alpha)
 
   79 plt.text(1.6e-8,0.24,
'He 4',color=
'tab:blue',ha=
'center')
 
   82 plt.axhspan((1.23-0.32)*1e-10,(1.23+0.68)*1e-10,color = 
'tab:red',alpha=alpha)
 
   83 plt.text(2.8e-11,5e-9,
'Li 7 + Be 7',color=
'r',ha=
'center')
 
   86 plt.plot(etas,he_list,lw=2)
 
   87 plt.plot(etas,d_list,lw=2)
 
   88 plt.plot(etas,he3_list,lw=2)
 
   89 plt.plot(etas,li7_list,lw=2)
 
   99 plt.ylabel(
'Abundance relative to hydrogen')
 
  102 plt.savefig(
'different_etas.pdf',bbox_inches=
'tight')