From 7360e49d76b353ca39e7b29b307c8d68b0622f5d Mon Sep 17 00:00:00 2001 From: Jernej Urankar Date: Wed, 13 Sep 2017 12:18:18 +0200 Subject: [PATCH] Scatter Plog Graph: fix labelling when there are missing data --- Orange/widgets/visualize/owscatterplotgraph.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Orange/widgets/visualize/owscatterplotgraph.py b/Orange/widgets/visualize/owscatterplotgraph.py index d135dea8640..13e7ce32297 100644 --- a/Orange/widgets/visualize/owscatterplotgraph.py +++ b/Orange/widgets/visualize/owscatterplotgraph.py @@ -962,9 +962,10 @@ def update_labels(self): formatter = self.attr_label.str_val label_data = map(formatter, label_column) black = pg.mkColor(0, 0, 0) + selection = self.selection[self.valid_data] if self.selection is not None else [] if self.label_only_selected: for label, text, selected \ - in zip(self.labels, label_data, self.selection): + in zip(self.labels, label_data, selection): label.setText(text if selected else "", black) else: for label, text in zip(self.labels, label_data):