From bab52d0396974224a22d1f91896392d8fbf01573 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 23 Feb 2022 11:18:14 +0100 Subject: [PATCH] Optionally display figure in debug mode --- cscripts/csfootprint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cscripts/csfootprint.py b/cscripts/csfootprint.py index 2b88ba0..b0f981c 100755 --- a/cscripts/csfootprint.py +++ b/cscripts/csfootprint.py @@ -664,7 +664,8 @@ class csfootprint(ctools.cscript): fig.text(x0+dx, y0, info['fp_yr'], fontsize=fontsize, ha='left') # Optionally display figure for debugging - #plt.show() + if self._logDebug(): + plt.show() # Save figure fig.savefig(outfile, dpi=300) -- libgit2 0.21.4