From 9fa280ff13e786e13c5ce707f1bcc632410a7cae Mon Sep 17 00:00:00 2001 From: Alexander James Date: Fri, 19 Jul 2024 11:00:21 -0700 Subject: [PATCH] fix typo in if statement --- pyleoclim/core/coherences.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyleoclim/core/coherences.py b/pyleoclim/core/coherences.py index 7f4e74e6..516deb69 100644 --- a/pyleoclim/core/coherences.py +++ b/pyleoclim/core/coherences.py @@ -410,7 +410,7 @@ def plot(self, var='wtc', xlabel=None, ylabel=None, title='auto', figsize=[10, 8 plotting.savefig(fig, settings=savefig_settings) if title is not None and title != 'auto': fig.suptitle(title) - elif title == 'auto' and lbl1 is not None and lbl1 is not None: + elif title == 'auto' and lbl1 is not None and lbl2 is not None: title = 'Wavelet coherency ('+self.wave_method.upper() +') between '+ lbl1 + ' and ' + lbl2 fig.suptitle(title) return fig, ax