From 341181bb690cf446044fdfe38c557673655b20e1 Mon Sep 17 00:00:00 2001 From: Bram van Es Date: Sun, 9 Apr 2023 12:38:04 +0200 Subject: [PATCH] Update hierarchical.py bugfix: the output is not a tuple. --- dtaidistance/clustering/hierarchical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtaidistance/clustering/hierarchical.py b/dtaidistance/clustering/hierarchical.py index e7bf13a5..4122553b 100644 --- a/dtaidistance/clustering/hierarchical.py +++ b/dtaidistance/clustering/hierarchical.py @@ -340,7 +340,7 @@ def plot_i(node, depth, cnt_ts, prev_lcnt, ax, left): curcolor = ts_color(int(node)) else: curcolor = None - line, = ax[1].plot(ts_left_margin + ts_sample_length * np.arange(len(serie)), + line = ax[1].plot(ts_left_margin + ts_sample_length * np.arange(len(serie)), bottom_margin + ts_height * (cnt_ts + 0.5) + self.ts_height_factor * serie, color=curcolor) cnt_ts += 1