Commit ebe17f52 authored by Maxime Rey's avatar Maxime Rey
Browse files

Aesthetics: better phase diagram saving.

parent 92c718de
......@@ -242,7 +242,7 @@ def plot_phase_diag(genpath, folders, timesteps, var_str='H', cgm_gas=False, no_
plt.colorbar(im, cax=cax).set_label(label=fr'$M_{{{var_str}}} [M_\odot]$',size=16)
if savefig:
fig.savefig(f'PhaseDiag_{fold[:-1]}_{timestep}.svg')
fig.savefig(f'PhaseDiag_{fold[:-1]}_{timestep}.svg',bbox_inches='tight',pad_inches=0)
def plot_evol_phase_diag(RamsesDir, max_timestep, bins=300, xlims=None, ylims=None, vmin=None, vmax=None, factor=1, savefig=False, saveinfile=True):
......
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