diff --git a/Orange/widgets/visualize/owscatterplotgraph.py b/Orange/widgets/visualize/owscatterplotgraph.py index 764e85e4152..4b0ad61b0cb 100644 --- a/Orange/widgets/visualize/owscatterplotgraph.py +++ b/Orange/widgets/visualize/owscatterplotgraph.py @@ -36,6 +36,8 @@ SELECTION_WIDTH = 5 MAX = 11 # maximum number of colors or shapes (including Other) +MAX_POINTS_IN_TOOLTIP = 5 + class PaletteItemSample(ItemSample): """A color strip to insert into legends for discretized continuous values""" @@ -1227,8 +1229,16 @@ def point_data(p): act_pos = self.scatterplot_item.mapFromScene(event.scenePos()) points = self.scatterplot_item.pointsAt(act_pos) + if len(points): - text = "