Skip to content

Commit

Permalink
Merge pull request #2590 from jerneju/scatterplotgraph-selection-vali…
Browse files Browse the repository at this point in the history
…ddata

[FIX] ScatterPlotGraph: fix labelling when there are missing data
  • Loading branch information
lanzagar authored Sep 15, 2017
2 parents 25d5fe1 + 7360e49 commit 310fb47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Orange/widgets/visualize/owscatterplotgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 310fb47

Please sign in to comment.