From 517d8f8b8980b4c26eb7a4866c9c02dd17b74e9c Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Sat, 14 Jul 2018 12:37:09 +0100 Subject: [PATCH] Minor fix for invalid bound ranges --- holoviews/core/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/holoviews/core/util.py b/holoviews/core/util.py index d0fe701b04..5a4c1d6f85 100644 --- a/holoviews/core/util.py +++ b/holoviews/core/util.py @@ -1631,6 +1631,8 @@ def bound_range(vals, density, time_unit='us'): assumed to be evenly spaced. Density is rounded to machine precision using significant digits reported by sys.float_info.dig. """ + if not len(vals): + return(np.nan, np.nan, density, False) low, high = vals.min(), vals.max() invert = False if len(vals) > 1 and vals[0] > vals[1]: