Commit 2ceef8c8 authored by Maxime Rey's avatar Maxime Rey
Browse files

Aesthetics.

parent 3d8a5253
......@@ -150,7 +150,7 @@ def PDF(what2plot, genpath, folders, timesteps, labels, weight=None, density=Tru
elif what2plot=='star_age':
_, _, _, _, _, star_age, _, _, _, _, _ = \
ras.extract_stars(RamsesDir, timestep, factor=factor, saveinfile=saveinfile, rmsat=rmsat)
temp_var, x_label = star_age, 'Stellar age [Myrs]'
temp_var, x_label = star_age, 'Stellar age [Myr]'
elif what2plot=='star_mets':
_, _, _, _, _, _, _, _, _, star_mets, _ = \
ras.extract_stars(RamsesDir, timestep, factor=factor, saveinfile=saveinfile, rmsat=rmsat)
......@@ -1381,7 +1381,7 @@ def stars_density(genpath, folders, labels, timesteps, nbins=50, factor=1, shade
ax.fill_between([],[], [], alpha=0.25, label=err_lab, color='k')
plt.legend()
ax.set_yscale('log')
ax.set_xlabel('Stellar age [Myrs]')
ax.set_xlabel('Stellar age [Myr]')
ax.set_ylabel(fr'<n$_H$>$_{{{str(len(timesteps))}\ snaps}}$ [H.cm$^{{-3}}$]')
......@@ -2253,7 +2253,7 @@ def pdf_in_out_flow(genpath, folders, timesteps, labels, bins=300, x_log=True, y
def plot_mass_load(genpath, folders, timesteps, dist_kpc, labels, factor=1, xlims=None, ylims=None, y_log=True, saveinfile=True, savefig=False, rmsat=False):
"""
Plots the mass loading factor as a function of time.
As there is only one value for the outflow rate per output, the corresponding sfr is the average taken over t_avg Myrs (hardcoded).
As there is only one value for the outflow rate per output, the corresponding sfr is the average taken over t_avg Myr (hardcoded).
"""
from astropy.cosmology import FlatLambdaCDM, z_at_value
from ratatouille import readNsave as ras
......@@ -3351,7 +3351,7 @@ def plot_runtime(genpath, folders, labels, logstr='logs', fmt='h', xlims=None, y
ax.set_xlim(xlims)
ax.set_ylim(ylims)
ax.set_xlabel('Time [Gyrs]')
ax.set_xlabel('Time [Gyr]')
if fmt=='h':
ax.set_ylabel('Runtime [hours]')
else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment