Commit 91261f1f authored by Maxime Rey's avatar Maxime Rey
Browse files

Improvement: rmeoved useless variable in 'rad_col'.

parent 224b7b9a
......@@ -1282,8 +1282,8 @@ def rad_Zfrac(genpath, folders, labels, timesteps, r_max=150, factor=2, nbins=10
if savefig:
fig.savefig(f'rad_Zprof.svg')
def rad_col(genpath, folders, timesteps, labels, r_max=150, lmax=20, var_str='HI', split_flows=False, nbins=1000, factor=2, rmsat=False,
plot=True, xlims=None, ylims=None, saveinfile=True, no_err=True, logx=True):
def rad_col(genpath, folders, timesteps, labels, r_max=150, lmax=18, var_str='HI', split_flows=False, nbins=1000, factor=2, rmsat=False,
plot=True, xlims=None, ylims=None, saveinfile=True, logx=True):
"""
Slow routine.
It also needs a lot of memory so preferentially run it through a job before trying to plot stuff.
......@@ -1308,14 +1308,8 @@ def rad_col(genpath, folders, timesteps, labels, r_max=150, lmax=20, var_str='HI
if plot:
prop_cycle = plt.rcParams['axes.prop_cycle']
colors = prop_cycle.by_key()['color']
if no_err:
_, ax = plt.subplots(nrows=1, ncols=1, figsize=(15,9))
axes = [ax]
else:
if split_flows:
_, axes = plt.subplots(nrows=3, ncols=1, figsize=(10,6), gridspec_kw={'height_ratios': [6, 1, 1]})
else:
_, axes = plt.subplots(nrows=2, ncols=1, figsize=(10,6), gridspec_kw={'height_ratios': [4, 1]})
_, ax = plt.subplots(nrows=1, ncols=1, figsize=(15,9))
axes = [ax]
for index, folder in enumerate(folders):
RamsesDir = genpath+folder
......
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