Skip to content

Commit

Permalink
GradientColorMap: Allow thresholds to be the same
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Mar 31, 2020
1 parent 13201af commit 6e5c50b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/widgets/visualize/utils/heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class GradientColorMap(ColorMap):
def __init__(self, colortable, thresholds=thresholds, center=None, span=None):
self.colortable = np.asarray(colortable)
self.thresholds = thresholds
assert thresholds[0] < thresholds[1]
assert thresholds[0] <= thresholds[1]
self.center = center
self.span = span

Expand Down

0 comments on commit 6e5c50b

Please sign in to comment.