Skip to content

Commit 036e96d

Browse files
authored
Hierarchical Clustering: Color by metas (#6178)
1 parent bb4f4ba commit 036e96d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Orange/widgets/unsupervised/owhierarchicalclustering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,9 +627,9 @@ def _update_labels(self):
627627
self.labels.setMinimumWidth(1 if labels else -1)
628628

629629
if not self.pruning and self.color_by is not None:
630+
col = self.items.get_column_view(self.color_by)[0].astype(float)
630631
self.label_model.set_colors(
631-
self.color_by.palette.values_to_qcolors(
632-
self.items.get_column_view(self.color_by)[0][indices]))
632+
self.color_by.palette.values_to_qcolors(col[indices]))
633633
else:
634634
self.label_model.set_colors(None)
635635

0 commit comments

Comments
 (0)