From 7eea2752ebe4bd723abf4f7b10f49d25ce84cbf0 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 5 Mar 2019 00:37:21 -0300 Subject: [PATCH] Styling plot: Set tick to be inside. Minor changes in labels. --- pcigale_plots/plot_types/sed.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pcigale_plots/plot_types/sed.py b/pcigale_plots/plot_types/sed.py index 9fb649c8..b472eec1 100644 --- a/pcigale_plots/plot_types/sed.py +++ b/pcigale_plots/plot_types/sed.py @@ -283,6 +283,9 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series, forma ax2.set_xscale('log') ax2.minorticks_on() + ax1.tick_params(direction='in', axis='both', which='both', top=True, left=True, right=True, bottom=False) + ax2.tick_params(direction='in', axis='both', which='both', right=True) + figure.subplots_adjust(hspace=0., wspace=0.) ax1.set_xlim(xmin, xmax) @@ -318,11 +321,11 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series, forma ax1.set_ylabel("Luminosity [W]") ax2.set_ylabel("Relative residual luminosity") else: - ax2.set_xlabel("Observed wavelength [$\mu$m]") - ax1.set_ylabel("Flux [mJy]") - ax2.set_ylabel("Relative residual flux") - ax1.legend(fontsize=6, loc='best', fancybox=True, framealpha=0.5) - ax2.legend(fontsize=6, loc='best', fancybox=True, framealpha=0.5) + ax2.set_xlabel("Observed $\lambda$ ($\mu$m)") + ax1.set_ylabel("S$_\\nu$ (mJy)") + ax2.set_ylabel("Relative residual S$_\\nu$") + ax1.legend(fontsize=6, loc='best', frameon=False)#, fancybox=True, framealpha=0.5) + ax2.legend(fontsize=6, loc='best', frameon=False)#, fancybox=True, framealpha=0.5) plt.setp(ax1.get_xticklabels(), visible=False) plt.setp(ax1.get_yticklabels()[1], visible=False) figure.suptitle("Best model for {} at z = {}. Reduced $\chi^2$={}". -- GitLab