Skip to content

Commit d76b45f

Browse files
committed
Projections: Fix color density
1 parent 45f17d5 commit d76b45f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Orange/widgets/visualize/owscatterplotgraph.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,8 +1176,9 @@ def update_density(self):
11761176
if c_data is None:
11771177
return
11781178
visible_c_data = self._filter_visible(c_data)
1179-
mask = np.bitwise_and(np.isfinite(visible_c_data),
1180-
visible_c_data < MAX_COLORS - 1)
1179+
mask = np.isfinite(visible_c_data)
1180+
if not self.master.is_continuous_color():
1181+
mask = np.bitwise_and(mask, visible_c_data < MAX_COLORS - 1)
11811182
pens = self.scatterplot_item.data['pen']
11821183
rgb_data = [
11831184
pen.color().getRgb()[:3] if pen is not None else (255, 255, 255)

0 commit comments

Comments
 (0)