2 import matplotlib.pyplot
as plt
7 A = np.array([1,1,2,3,3,4,6,7,7])
8 names = [
'n',
'p',
'd',
't',
r'$^3$He',
r'$^4$He',
r'$^6$Li',
r'$^7$Li',
r'$^7$Be']
11 data = np.loadtxt(
"tracked_nuclei.dat",unpack=
True)
22 colors = [
'g',
'b',
'c',
'k',
'y',
'm',
'r',
'navy',
'teal']
25 for i
in range(len(X.T)):
26 ax.plot(time,X.T[i],label=names[i],color=colors[i])
29 ax.set_xlabel(
'Time [s]')
30 ax.set_ylabel(
'Mass fraction')
33 ax.set_xlim(time[0],time[-1])
34 ax.set_ylim(1e-14,1.1)
35 plt.legend(loc=
"upper center",bbox_to_anchor=(0.5, 1.17),ncol = 5,fancybox=
True)
38 fig.savefig(
"bbn.pdf",bbox_inches=
'tight')