Plotting Functions:
Functions to perform plotting.
- plotting.plot_EOS(filenames, T=0.1, verbose=False)
Plot equation of state
Plot the equation of state described by various .h5 files in the stellarcollapse format
- Parameters
filenames (array) – list or array of strings. These are the paths to .h5 files to be plotted
T (float) – Temperature to plot at in MeV. Default = 0.1
verbose (bool) – Switch to turn on print statements during run
- Returns
Figure to be plotted
- Return type
plt.Figure
- plotting.shorten_path(path, max_len=10)
Shorten path string
Shorten a path string to make it easier to read when printed
- Parameters
path (str) – string. Original path to be shortened
max_len (int) – integer. Maximum length of each dir to return. Default = 10
- Returns
shortened path
- Return type
str
- plotting.shorten_str(s, max_len=10)
Shorten string
Shorten a string to make it easier to read when printed
- Parameters
s (str) – string. Original text to be shortened
max_len (int) – integer. Maximum length of the string to return. Default = 10
- Returns
shortened string
- Return type
str