Skip to content
Snippets Groups Projects
Commit 0e7794ab authored by Kipp Cannon's avatar Kipp Cannon
Browse files

plotfar.py, plotpsd.py: add some missing tightlayout() calls

parent c7936a4b
No related branches found
No related tags found
No related merge requests found
......@@ -138,6 +138,7 @@ def plot_snr_chi_pdf(coinc_param_distributions, instrument, binnedarray_string,
axes.set_title(r"$\ln P(\chi^{2} / \mathrm{SNR}^{2} | \mathrm{SNR}, \mathrm{signal} ) / P(\mathrm{SNR}, \chi^{2} / \mathrm{SNR}^{2} | \mathrm{noise})$ in %s" % instrument)
else:
raise ValueError(tag)
fig.tight_layout(pad = .8)
return fig
......@@ -274,6 +275,7 @@ def plot_snr_joint_pdf(snrpdf, instruments, horizon_distances, max_snr, ifo_snr
axes.set_xlabel(r"$\mathrm{SNR}_{\mathrm{%s}}$" % instruments[0])
axes.set_ylabel(r"$\mathrm{SNR}_{\mathrm{%s}}$" % instruments[1])
axes.set_title(r"$\ln P(%s)$" % ", ".join("\mathrm{SNR}_{\mathrm{%s}}" % instrument for instrument in instruments))
fig.tight_layout(pad = .8)
return fig
......
......@@ -114,5 +114,6 @@ def plot_psds(psds, coinc_xmldoc = None, plot_width = 640):
axes.set_xlabel(r"Frequency (Hz)")
axes.set_ylabel(r"Spectral Density ($\mathrm{strain}^2 / \mathrm{Hz}$)")
axes.legend(loc = "upper right")
fig.tight_layout(pad = .8)
return fig
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment