From 9cb7c9f048a0df98359c53785636c19d365540de Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Tue, 25 Oct 2016 14:52:02 +0200 Subject: [PATCH] Adds title to twoFcumulative plot --- pyfstat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyfstat.py b/pyfstat.py index d25c57a..5bf3a00 100755 --- a/pyfstat.py +++ b/pyfstat.py @@ -427,7 +427,7 @@ class ComputeFstat(object): return taus, np.array(twoFs) def plot_twoF_cumulative(self, label, outdir, ax=None, c='k', savefig=True, - **kwargs): + title=None, **kwargs): taus, twoFs = self.calculate_twoF_cumulative(**kwargs) if ax is None: fig, ax = plt.subplots() @@ -436,6 +436,7 @@ class ComputeFstat(object): kwargs['tstart'])) ax.set_ylabel(r'$\widetilde{2\mathcal{F}}_{\rm cumulative}$') ax.set_xlim(0, taus[-1]/86400) + ax.set_title(title) if savefig: plt.savefig('{}/{}_twoFcumulative.png'.format(outdir, label)) else: -- GitLab