3 import matplotlib.pyplot
as plt
8 sys.path.append(
'../../bin')
9 from class_files.winnet_class
import winnet
11 fig = plt.figure(figsize=(7,5))
16 folders = np.array(os.listdir(
'.'))
17 folder_mask = list(map(
lambda x:
'trajectory_' in x, folders))
18 folders = np.array(folders)[folder_mask]
19 single_run = winnet(folders[0])
22 A_all = np.arange(400)
27 single_run = winnet(f)
28 single_run.read_finab()
29 A,X = single_run.get_final_A_X()
31 ax.plot(A,X,color=
'grey',zorder=1)
34 ax.plot(A_all,X_all/len(folders),color=
"tab:orange",zorder=3,label=
"Integrated mass fractions")
36 ax.plot(np.nan,np.nan,color=
'grey',zorder=1,label=
"Individual mass fractions")
37 ax.legend(loc=
"upper right")
40 ax.set_xlabel(
"Mass number")
41 ax.set_ylabel(
"Mass fraction")
45 plt.savefig(
"massfractions_nsbh_rosswog.pdf",bbox_inches=
"tight")