diff --git a/Orange/widgets/utils/plot/owplotgui.py b/Orange/widgets/utils/plot/owplotgui.py index eabc9df779d..ff8ce174c2b 100644 --- a/Orange/widgets/utils/plot/owplotgui.py +++ b/Orange/widgets/utils/plot/owplotgui.py @@ -373,8 +373,11 @@ def animations_check_box(self, widget): ''' self._check_box(widget, 'use_animations', 'Use animations', 'update_animations') - def _slider(self, widget, value, label, min_value, max_value, step, cb_name): - gui.hSlider(widget, self._plot, value, label=label, minValue=min_value, maxValue=max_value, step=step, callback=self._get_callback(cb_name)) + def _slider(self, widget, value, label, min_value, max_value, step, cb_name, + show_number=False): + gui.hSlider(widget, self._plot, value, label=label, minValue=min_value, + maxValue=max_value, step=step, createLabel=show_number, + callback=self._get_callback(cb_name)) def point_size_slider(self, widget): ''' diff --git a/Orange/widgets/visualize/owscatterplot.py b/Orange/widgets/visualize/owscatterplot.py index 7db23bc1113..4afe7237994 100644 --- a/Orange/widgets/visualize/owscatterplot.py +++ b/Orange/widgets/visualize/owscatterplot.py @@ -102,8 +102,8 @@ def __init__(self): vizrank_box = gui.hBox(box) gui.separator(vizrank_box, width=common_options["labelWidth"]) self.vizrank_button = gui.button( - vizrank_box, self, "Rank Projections", callback=self.vizrank.reshow, - tooltip="Find projections with good class separation") + vizrank_box, self, "Score Plots", callback=self.vizrank.reshow, + tooltip="Find plots with good class separation") self.vizrank_button.setEnabled(False) gui.separator(box) @@ -130,9 +130,6 @@ def __init__(self): box, self, "graph.attr_label", label="Label:", emptyString="(No labels)", callback=self.graph.update_labels, **common_options) - gui.checkBox( - gui.indentedBox(box), self, 'graph.label_only_selected', - 'Label only selected points', callback=self.graph.update_labels) self.cb_attr_shape = gui.comboBox( box, self, "graph.attr_shape", label="Shape:", emptyString="(Same shape)", callback=self.graph.update_shapes, @@ -147,11 +144,15 @@ def __init__(self): box = gui.vBox(self.controlArea, "Plot Properties") g.add_widgets([g.ShowLegend, g.ShowGridLines], box) - gui.checkBox(box, self, value='graph.tooltip_shows_all', - label='Show all data on mouse hover') + gui.checkBox( + box, self, value='graph.tooltip_shows_all', + label='Show all data on mouse hover') self.cb_class_density = gui.checkBox( box, self, value='graph.class_density', label='Show class density', callback=self.update_density) + gui.checkBox( + box, self, 'graph.label_only_selected', + 'Label only selected points', callback=self.graph.update_labels) self.zoom_select_toolbar = g.zoom_select_toolbar( gui.vBox(self.controlArea, "Zoom/Select"), nomargin=True,