From 90dad473a344d34bdd01f1dc07c11af9580fd6df Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Mon, 12 Feb 2018 17:32:58 +1100 Subject: [PATCH] Minor modifications to mcmc corner plots --- ...t_glitch_robust_directed_MCMC_search_on_1_glitch.py | 2 +- pyfstat/mcmc_based_searches.py | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/glitch_examples/semicoherent_glitch_robust_directed_MCMC_search_on_1_glitch.py b/examples/glitch_examples/semicoherent_glitch_robust_directed_MCMC_search_on_1_glitch.py index 4935698..15114e0 100644 --- a/examples/glitch_examples/semicoherent_glitch_robust_directed_MCMC_search_on_1_glitch.py +++ b/examples/glitch_examples/semicoherent_glitch_robust_directed_MCMC_search_on_1_glitch.py @@ -47,5 +47,5 @@ mcmc.transform_dictionary['F1'] = dict( subtractor=F1, symbol='$\dot{f}-\dot{f}^\mathrm{s}$') mcmc.run() -mcmc.plot_corner() +mcmc.plot_corner(label_offset=0.15) mcmc.print_summary() diff --git a/pyfstat/mcmc_based_searches.py b/pyfstat/mcmc_based_searches.py index 550d8c4..aa3e75d 100644 --- a/pyfstat/mcmc_based_searches.py +++ b/pyfstat/mcmc_based_searches.py @@ -743,7 +743,7 @@ class MCMCSearch(core.BaseSearchClass): max_n_ticks=4, plot_contours=True, plot_datapoints=True, - label_kwargs={'fontsize': 8}, + label_kwargs={'fontsize': 12}, data_kwargs={'alpha': 0.1, 'ms': 0.5}, range=_range, @@ -760,6 +760,14 @@ class MCMCSearch(core.BaseSearchClass): for ax in axes_list: ax.set_rasterized(True) ax.set_rasterization_zorder(-10) + + for tick in ax.xaxis.get_major_ticks(): + tick.label.set_fontsize(8) + tick.label.set_rotation('horizontal') + for tick in ax.yaxis.get_major_ticks(): + tick.label.set_fontsize(8) + tick.label.set_rotation('vertical') + plt.tight_layout(h_pad=0.0, w_pad=0.0) fig.subplots_adjust(hspace=0.05, wspace=0.05) -- GitLab