Commit 5a578056 authored by Médéric Boquien's avatar Médéric Boquien

Some lines have been made slightly thicker in SED plots so the different...

Some lines have been made slightly thicker in SED plots so the different components are more visible
parent 464f44f0
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
- The wavelength range in SED plots is now dynamically adapted to cover the observed wavelengths. (Médéric Boquien) - The wavelength range in SED plots is now dynamically adapted to cover the observed wavelengths. (Médéric Boquien)
- The uncertainties on the SED plots now correspond only to 1σ rather than 3σ so they do not appear exceedingly large. (Médéric Boquien) - The uncertainties on the SED plots now correspond only to 1σ rather than 3σ so they do not appear exceedingly large. (Médéric Boquien)
- The lines linking the different bands in the residual SED plot have been eliminated to improve the readability. (Médéric Boquien) - The lines linking the different bands in the residual SED plot have been eliminated to improve the readability. (Médéric Boquien)
- Some lines have been made slightly thicker in SED plots so the different components are more visible. (Médéric Boquien)
### Fixed ### Fixed
- Make sure we can plot the PDF of equivalent widths. (Médéric Boquien) - Make sure we can plot the PDF of equivalent widths. (Médéric Boquien)
- Fix a crash when generating a mock catalogue containing intensive properties. (Médéric Boquien) - Fix a crash when generating a mock catalogue containing intensive properties. (Médéric Boquien)
......
...@@ -176,7 +176,7 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series, ...@@ -176,7 +176,7 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series,
sed['nebular.absorption_old'][wsed]), sed['nebular.absorption_old'][wsed]),
label="Stellar attenuated ", color='orange', label="Stellar attenuated ", color='orange',
marker=None, nonposy='clip', linestyle='-', marker=None, nonposy='clip', linestyle='-',
linewidth=0.5) linewidth=1.0)
else: else:
ax1.loglog(wavelength_spec[wsed], ax1.loglog(wavelength_spec[wsed],
(sed['stellar.young'][wsed] + (sed['stellar.young'][wsed] +
...@@ -185,14 +185,14 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series, ...@@ -185,14 +185,14 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series,
sed['attenuation.stellar.old'][wsed]), sed['attenuation.stellar.old'][wsed]),
label="Stellar attenuated ", color='orange', label="Stellar attenuated ", color='orange',
marker=None, nonposy='clip', linestyle='-', marker=None, nonposy='clip', linestyle='-',
linewidth=0.5) linewidth=1.0)
if 'stellar_unattenuated' in series: if 'stellar_unattenuated' in series:
ax1.loglog(wavelength_spec[wsed], ax1.loglog(wavelength_spec[wsed],
(sed['stellar.old'][wsed] + (sed['stellar.old'][wsed] +
sed['stellar.young'][wsed]), sed['stellar.young'][wsed]),
label="Stellar unattenuated", color='b', marker=None, label="Stellar unattenuated", color='b', marker=None,
nonposy='clip', linestyle='--', linewidth=0.5) nonposy='clip', linestyle='--', linewidth=1.0)
# Nebular emission # Nebular emission
if 'nebular' in series and 'nebular.lines_young' in sed.columns: if 'nebular' in series and 'nebular.lines_young' in sed.columns:
...@@ -206,7 +206,7 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series, ...@@ -206,7 +206,7 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series,
sed['attenuation.nebular.continuum_young'][wsed] + sed['attenuation.nebular.continuum_young'][wsed] +
sed['attenuation.nebular.continuum_old'][wsed]), sed['attenuation.nebular.continuum_old'][wsed]),
label="Nebular emission", color='y', marker=None, label="Nebular emission", color='y', marker=None,
nonposy='clip', linewidth=.5) nonposy='clip', linewidth=1.0)
# Dust emission Draine & Li # Dust emission Draine & Li
if 'dust' in series and 'dust.Umin_Umin' in sed.columns: if 'dust' in series and 'dust.Umin_Umin' in sed.columns:
...@@ -214,13 +214,13 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series, ...@@ -214,13 +214,13 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series,
(sed['dust.Umin_Umin'][wsed] + (sed['dust.Umin_Umin'][wsed] +
sed['dust.Umin_Umax'][wsed]), sed['dust.Umin_Umax'][wsed]),
label="Dust emission", color='r', marker=None, label="Dust emission", color='r', marker=None,
nonposy='clip', linestyle='-', linewidth=0.5) nonposy='clip', linestyle='-', linewidth=1.0)
# Dust emission Dale # Dust emission Dale
if 'dust' in series and 'dust' in sed.columns: if 'dust' in series and 'dust' in sed.columns:
ax1.loglog(wavelength_spec[wsed], sed['dust'][wsed], ax1.loglog(wavelength_spec[wsed], sed['dust'][wsed],
label="Dust emission", color='r', marker=None, label="Dust emission", color='r', marker=None,
nonposy='clip', linestyle='-', linewidth=0.5) nonposy='clip', linestyle='-', linewidth=1.0)
# AGN emission Fritz # AGN emission Fritz
if 'agn' in series and 'agn.fritz2006_therm' in sed.columns: if 'agn' in series and 'agn.fritz2006_therm' in sed.columns:
...@@ -229,7 +229,7 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series, ...@@ -229,7 +229,7 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series,
sed['agn.fritz2006_scatt'][wsed] + sed['agn.fritz2006_scatt'][wsed] +
sed['agn.fritz2006_agn'][wsed]), sed['agn.fritz2006_agn'][wsed]),
label="AGN emission", color='g', marker=None, label="AGN emission", color='g', marker=None,
nonposy='clip', linestyle='-', linewidth=0.5) nonposy='clip', linestyle='-', linewidth=1.0)
# Radio emission # Radio emission
if 'radio' in series and 'radio_nonthermal' in sed.columns: if 'radio' in series and 'radio_nonthermal' in sed.columns:
...@@ -237,7 +237,7 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series, ...@@ -237,7 +237,7 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series,
sed['radio_nonthermal'][wsed], sed['radio_nonthermal'][wsed],
label="Radio nonthermal", color='brown', label="Radio nonthermal", color='brown',
marker=None, nonposy='clip', linestyle='-', marker=None, nonposy='clip', linestyle='-',
linewidth=0.5) linewidth=1.0)
if 'model' in series: if 'model' in series:
ax1.loglog(wavelength_spec[wsed], sed['L_lambda_total'][wsed], ax1.loglog(wavelength_spec[wsed], sed['L_lambda_total'][wsed],
...@@ -256,7 +256,7 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series, ...@@ -256,7 +256,7 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series,
ax1.errorbar(filters_wl[mask_ok], obs_fluxes[mask_ok], ax1.errorbar(filters_wl[mask_ok], obs_fluxes[mask_ok],
yerr=obs_fluxes_err[mask_ok], ls='', marker='s', yerr=obs_fluxes_err[mask_ok], ls='', marker='s',
label='Observed fluxes', markerfacecolor='None', label='Observed fluxes', markerfacecolor='None',
markersize=6, markeredgecolor='b', capsize=0.) markersize=6, markeredgecolor='b', capsize=0., lw=1)
mask_uplim = np.logical_and(np.logical_and(obs_fluxes > 0., mask_uplim = np.logical_and(np.logical_and(obs_fluxes > 0.,
obs_fluxes_err < 0.), obs_fluxes_err < 0.),
obs_fluxes_err > -9990. * k_corr_SED) obs_fluxes_err > -9990. * k_corr_SED)
......
Markdown is supported
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