From 3e8962f9ba98b7942e7b693f39d6d0a8fd9d66d7 Mon Sep 17 00:00:00 2001
From: David Schaefer <david.schaefer@ufz.de>
Date: Tue, 17 Jan 2023 15:22:09 +0100
Subject: [PATCH] fix warning from plot test

---
 saqc/funcs/tools.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/saqc/funcs/tools.py b/saqc/funcs/tools.py
index 87ad8ec3e..9888bb1ff 100644
--- a/saqc/funcs/tools.py
+++ b/saqc/funcs/tools.py
@@ -327,7 +327,7 @@ class ToolsMixin:
             ax_kwargs=ax_kwargs,
         )
 
-        if ax is None:
+        if ax is None and not path:
             plt.show()
 
         if path:
-- 
GitLab