From 120cb0d0b3c654eb2e87878b5bd24cdc2d9ba229 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Peter=20L=C3=BCnenschlo=C3=9F?= <peter.luenenschloss@ufz.de>
Date: Mon, 4 Mar 2024 11:34:20 +0100
Subject: [PATCH] fix ylim=None bug

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

diff --git a/saqc/funcs/tools.py b/saqc/funcs/tools.py
index db4b3700a..e0f53fabb 100644
--- a/saqc/funcs/tools.py
+++ b/saqc/funcs/tools.py
@@ -503,8 +503,9 @@ class ToolsMixin:
             and not isinstance(yscope[0], (list, tuple))
         ):
             yscope = tuple(yscope)
+        if yscope is not None:
 
-        ax_kwargs.update({"ylim": yscope})
+            ax_kwargs.update({"ylim": yscope})
 
         if not path:
             mpl.use(_MPL_DEFAULT_BACKEND)
-- 
GitLab