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

gstlal_inspiral_lvalert_pds_plotter: use .tight_layout()

- if available.
parent 3920c7b5
No related branches found
No related tags found
No related merge requests found
......@@ -189,6 +189,11 @@ for graceid in graceids:
if psds is None:
continue
fig = plotpsd.plot_psds(psds, get_coinc_xmldoc(gracedb_client, graceid))
try:
fig.tight_layout()
except AttributeError:
# not available on old matplotlibs
pass
if options.no_upload:
filename = "psd_%s.png" % graceid
logging.info("writing %s ..." % filename)
......
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