Commit 6fc4c93f authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Some labels and the title for the SED plots has been improved to avoid overlaps and overflows

parent c6bce87f
......@@ -16,6 +16,7 @@
- Fix the pip install by making pcigale.managers discoverable. (Yannick Roehlly)
- When using a parameters file, Boolean values were not correctly interpreted. (Médéric Boquien, reported by Eric Martínez, INAOE)
- Make sure that the best-fit models are stored with the correct scaling factor when the distance is given explicitly (Médéric Boquien)
- Some labels and the title for the SED plots has been improved to avoid overlaps and overflows. (Médéric Boquien)
### Optimised
- Slight speedup of the computation of the likelihood from the χ² (Médéric Boquien)
- The the fritz2006 module should now run faster thanks to an optimisation of the computation of the luminosity of the various AGN components (Médéric Boquien & Guang Yang)
......
......@@ -321,17 +321,16 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series,
if sed_type == 'lum':
ax2.set_xlabel(r"Rest-frame wavelength [$\mu$m]")
ax1.set_ylabel("Luminosity [W]")
ax2.set_ylabel("Relative residual luminosity")
else:
ax2.set_xlabel(r"Observed $\lambda$ ($\mu$m)")
ax1.set_ylabel(r"S$_\nu$ (mJy)")
ax2.set_ylabel(r"Relative residual S$_\nu$")
ax2.set_ylabel("Relative\nresidual")
ax1.legend(fontsize=6, loc='best', frameon=False)
ax2.legend(fontsize=6, loc='best', frameon=False)
plt.setp(ax1.get_xticklabels(), visible=False)
plt.setp(ax1.get_yticklabels()[1], visible=False)
figure.suptitle(f"Best model for {obs['id']} at z = {z:.3}. "
f"Reduced χ²={mod['best.reduced_chi_square']:.2}")
figure.suptitle(f"Best model for {obs['id']}\n (z={z:.3}, "
f"reduced χ²={mod['best.reduced_chi_square']:.2})")
if logo is not False:
# Multiplying the dpi by 2 is a hack so the figure is small
# and not too pixelated
......
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