Commit 64a82cf6 authored by Maxime Rey's avatar Maxime Rey
Browse files

Improvement: added log_x for 'rad_Zfrac'.

parent 1e63832d
......@@ -1212,7 +1212,7 @@ def rad_prof(genpath, folders, labels, timesteps, var_str='H', overwhat='V', r_m
if savefig:
fig.savefig('mass_cgm.svg')
def rad_Zfrac(genpath, folders, labels, timesteps, r_max=150, factor=2, nbins=100, split_flow=False, xlims=None, ylims=None, saveinfile=False, savefig=False):
def rad_Zfrac(genpath, folders, labels, timesteps, r_max=150, factor=2, nbins=100, split_flow=False, xlims=None, ylims=None, logx=False, saveinfile=False, savefig=False):
"""
Plots the average density of the CGM and it's average mass-weighted temperature through radial chunks. It is also possible to remove satellites from the selection.
Stacks timesteps up to the rvir of the first timestep (the smaller one).
......@@ -1282,6 +1282,8 @@ def rad_Zfrac(genpath, folders, labels, timesteps, r_max=150, factor=2, nbins=10
ax.legend(frameon=False)
ax.set_yscale('log')
if logx:
ax.set_xscale('log')
ax.set_xlabel('$r$ [kpc]')
ax.set_ylabel('Metal mass fraction')
ax.set_xlim(xlims)
......
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