Skip to content

Commit 774c4be

Browse files
authored
Merge pull request #4212 from janezd/featurestatistics-last-bin-color
Feature Statistics: Fix coloring of the last bin
2 parents 6722bb8 + 4228dea commit 774c4be

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Orange/widgets/data/utils/histogram.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,7 @@ def _get_colors(self):
359359

360360
bins = np.arange(self.n_bins)[:, np.newaxis]
361361
edges = self.edges if self.attribute.is_discrete else self.edges[1:-1]
362-
# Need to digitize on `right` here so the samples will be assigned
363-
# to the correct bin for coloring
364-
bin_indices = ut.digitize(self.x, bins=edges, right=True)
362+
bin_indices = ut.digitize(self.x, bins=edges)
365363
mask = bin_indices == bins
366364

367365
colors = []

0 commit comments

Comments
 (0)