Plot_me.py
Go to the documentation of this file.
1 # Author: M. Reichert
2 import numpy as np
3 import matplotlib.pyplot as plt
4 
5 # Set up the figure with a reasonable size
6 fig = plt.figure(figsize=(5,3))
7 
8 # The runs, the numbers correspond to different fissflags
9 # Fissflag 1: Panov et al. 2001
10 # Fissflag 2: Kodama & Takahashi 1975
11 # Fissflag 3: Mumpower et al. 2020 for neutron-induced and beta-delayed fission,
12 # Kodama & Takahashi 1975 for spontaneous fission
13 runs=["1","2","3"]
14 labels=["Panov et al. 2001","Kodama & Takahashi 1975", "Mumpower et al. 2020"]
15 
16 # Loop over the runs and plot the data
17 for ind,r in enumerate(runs):
18  path = r+"/finabsum.dat"
19  A,Y,X = np.loadtxt(path,unpack=True)
20  plt.plot(A,X,label=labels[ind])
21 
22 # Make the plot look nice
23 plt.yscale("log")
24 plt.ylim(1e-8,1)
25 plt.xlim(40,220)
26 plt.legend(loc="lower right",framealpha=1)
27 plt.xlabel("Mass number")
28 plt.ylabel("Mass fraction")
29 # Save the plot
30 plt.savefig("different_fission_fragments.pdf",bbox_inches="tight")
31 # Show the plot
32 plt.show()