From b3965b4dbcdaaa0410812b8a9918c9436f90935b Mon Sep 17 00:00:00 2001 From: maximlt Date: Wed, 17 Apr 2024 17:12:01 +0200 Subject: [PATCH] make it a no-op if it doesn't include any Chart --- holoviews/operation/normalization.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/holoviews/operation/normalization.py b/holoviews/operation/normalization.py index 929e283c2a..67f3e0de29 100644 --- a/holoviews/operation/normalization.py +++ b/holoviews/operation/normalization.py @@ -192,12 +192,17 @@ class subcoordinate_group_ranges(Operation): def _process(self, overlay, key=None): vmins = defaultdict(list) vmaxs = defaultdict(list) + include_chart = False for el in overlay: if not isinstance(el, Chart): continue vmin, vmax = el.range(1) vmins[el.group].append(vmin) vmaxs[el.group].append(vmax) + include_chart = True + + if not include_chart: + return overlay minmax = { group: (np.min(vmins[group]), np.max(vmaxs[group]))