Plot_me.py
Go to the documentation of this file.
1 # Author: M. Reichert
2 import matplotlib.pyplot as plt
3 import numpy as np
4 
5 # The here produced plot can be compared with the
6 # yields of the CPR2 group in
7 # Bliss et al. 2018 (https://ui.adsabs.harvard.edu/abs/2018ApJ...855..135B/abstract)
8 
9 # Read the summed (over Z) abundances
10 Z,Y = np.loadtxt("finabelem.dat",unpack=True)
11 
12 # Plot the final abundances versus atomic number
13 plt.plot(Z,Y)
14 
15 # Set the plot range correctly
16 plt.ylim(1e-8,1)
17 plt.xlim(1,58)
18 
19 # Other plot options
20 plt.yscale("log")
21 plt.ylabel("Abundance Y")
22 plt.xlabel("Atomic number Z")
23 
24 # Finally save the plot
25 plt.savefig("CCSN_wind_bliss.pdf",bbox_inches="tight")
26 plt.show()