From 0930faaa2a2103cfe70d40bb3a9257592e2083b1 Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins <jrollins@finestructure.net> Date: Tue, 11 Feb 2020 13:27:18 -0800 Subject: [PATCH] minor fixes to test report formatting --- gwinc/test/__main__.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/gwinc/test/__main__.py b/gwinc/test/__main__.py index 0136e7c1..cfac045c 100644 --- a/gwinc/test/__main__.py +++ b/gwinc/test/__main__.py @@ -137,14 +137,16 @@ def plot_diffs(freq, diffs, tolerance, plt.suptitle('''{} {}/{} noise comparison (noises that differ by more than {} ppm) - {}'''.format(name, labelA, labelB, tolerance*1e6, fom_title)) axl.set_xlabel("frequency [Hz]") axr.set_xlabel("frequency [Hz]") + plt.subplots_adjust(top=0.8, right=0.85, wspace=0.3) if save: - plt.gcf().set_size_inches(11, (len(diffs)*4 + 1)) + pwidth = 10 + pheight = (len(diffs) * 5) + 2 + plt.gcf().set_size_inches(pwidth, pheight) plt.savefig(save) else: plt.show() @@ -229,9 +231,11 @@ def main(): tracesA['int73'] = inspiral_range.int73(freq, totalA)[1], None fomB = range_func(freq, totalB, H=H) tracesB['int73'] = inspiral_range.int73(freq, totalB)[1], None - fom_summary = """inspiral {func} {m1}/{m2} Msol: - {labelA}: {fomA:.2f} Mpc - {labelB}: {fomB:.2f} Mpc""".format( + fom_summary = """ +inspiral {func} {m1}/{m2} Msol: +{labelA}: {fomA:.2f} Mpc +{labelB}: {fomB:.2f} Mpc +""".format( func=range_func.__name__, m1=H.params['m1'], m2=H.params['m2'], -- GitLab