Skip to content

Commit

Permalink
Scatter Plot: Replot only when axis actually change
Browse files Browse the repository at this point in the history
  • Loading branch information
VesnaT committed Dec 4, 2018
1 parent 03a3310 commit 242dad1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Orange/widgets/visualize/owscatterplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,9 @@ def set_shown_attributes(self, attributes):
self.attribute_selection_list = None

def set_attr(self, attr_x, attr_y):
self.attr_x, self.attr_y = attr_x, attr_y
self.attr_changed()
if attr_x != self.attr_x or attr_y != self.attr_y:
self.attr_x, self.attr_y = attr_x, attr_y
self.attr_changed()

def attr_changed(self):
self.cb_reg_line.setEnabled(self.can_draw_regresssion_line())
Expand Down

0 comments on commit 242dad1

Please sign in to comment.