Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] OWFreeViz: fix class density size #3158

Merged
merged 1 commit into from
Aug 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Orange/widgets/visualize/owfreeviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def __init__(self, scatter_widget, parent=None, name="None", view_box=None):
for axis_loc in ["left", "bottom"]:
self.plot_widget.hideAxis(axis_loc)

def update_data(self, attr_x, attr_y, reset_view=True):
def update_data(self, attr_x, attr_y, reset_view=False):
super().update_data(attr_x, attr_y, reset_view=reset_view)
for axis in ["left", "bottom"]:
self.plot_widget.hideAxis(axis)
Expand Down Expand Up @@ -736,7 +736,7 @@ def setup_plot(self, reset_view=True):
if reset_view:
self.viewbox.setRange(RANGE)
self.viewbox.setAspectLocked(True, 1)
self.plot(reset_view=reset_view)
self.plot()

def randomize_indices(self):
X = self._X
Expand Down Expand Up @@ -798,7 +798,7 @@ def plot(self, reset_view=False, show_anchors=True):
def reset_graph_data(self, *_):
if self.data is not None:
self.graph.rescale_data()
self._update_graph()
self._update_graph(reset_view=False)

def _update_graph(self, reset_view=True, **_):
self.graph.zoomStack = []
Expand Down