Skip to content

Commit

Permalink
Merge pull request #5039 from irgolic/scatterplot-selection-outline
Browse files Browse the repository at this point in the history
owscatterplotgraph: Align point and selection outline
  • Loading branch information
markotoplak committed Oct 19, 2020
2 parents ebcb681 + d9e2106 commit 81ccf30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Orange/widgets/visualize/owscatterplotgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1222,14 +1222,14 @@ def get_colors_sel(self):
if sels == 1:
pen = np.where(
self._filter_visible(self.selection),
_make_pen(QColor(255, 190, 0, 255), SELECTION_WIDTH + 1),
_make_pen(QColor(255, 190, 0, 255), SELECTION_WIDTH),
nopen)
else:
palette = colorpalettes.LimitedDiscretePalette(
number_of_colors=sels + 1)
pen = np.choose(
self._filter_visible(self.selection),
[nopen] + [_make_pen(palette[i], SELECTION_WIDTH + 1)
[nopen] + [_make_pen(palette[i], SELECTION_WIDTH)
for i in range(sels)])
return pen, [QBrush(QColor(255, 255, 255, 0))] * self.n_shown

Expand Down

0 comments on commit 81ccf30

Please sign in to comment.