From d049dcd9791e3bb076648d07ddfc1969c4c2c01a Mon Sep 17 00:00:00 2001 From: AdrianValentinCiu Date: Wed, 22 May 2024 17:05:56 +0300 Subject: [PATCH] EBR-63: fixed slider bug --- tvb_library/tvb/simulator/plot/phase_plane_interactive.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tvb_library/tvb/simulator/plot/phase_plane_interactive.py b/tvb_library/tvb/simulator/plot/phase_plane_interactive.py index 51a7c6d603..df2644b860 100644 --- a/tvb_library/tvb/simulator/plot/phase_plane_interactive.py +++ b/tvb_library/tvb/simulator/plot/phase_plane_interactive.py @@ -509,7 +509,6 @@ def update_xrange_sliders(self): self.axes_range_sliders["sl_x_min"].valmax = max_val_x self.axes_range_sliders["sl_x_min"].ax.set_xlim(min_val_x, max_val_x) self.axes_range_sliders["sl_x_min"].poly.axes.set_xlim(min_val_x, max_val_x) - self.axes_range_sliders["sl_x_min"].poly.xy[[0, 1], 0] = min_val_x self.axes_range_sliders["sl_x_min"].vline.set_data( ([self.axes_range_sliders["sl_x_min"].valinit, self.axes_range_sliders["sl_x_min"].valinit], [0, 1])) self.axes_range_sliders["sl_x_max"].valinit = self.model.state_variable_range[self.svx][1] @@ -517,7 +516,6 @@ def update_xrange_sliders(self): self.axes_range_sliders["sl_x_max"].valmax = max_val_x self.axes_range_sliders["sl_x_max"].ax.set_xlim(min_val_x, max_val_x) self.axes_range_sliders["sl_x_max"].poly.axes.set_xlim(min_val_x, max_val_x) - self.axes_range_sliders["sl_x_max"].poly.xy[[0, 1], 0] = min_val_x self.axes_range_sliders["sl_x_max"].vline.set_data( ([self.axes_range_sliders["sl_x_max"].valinit, self.axes_range_sliders["sl_x_max"].valinit], [0, 1])) self.axes_range_sliders["sl_x_min"].reset() @@ -538,7 +536,6 @@ def update_yrange_sliders(self): self.axes_range_sliders["sl_y_min"].valmax = max_val_y self.axes_range_sliders["sl_y_min"].ax.set_xlim(min_val_y, max_val_y) self.axes_range_sliders["sl_y_min"].poly.axes.set_xlim(min_val_y, max_val_y) - self.axes_range_sliders["sl_y_min"].poly.xy[[0, 1], 0] = min_val_y self.axes_range_sliders["sl_y_min"].vline.set_data( ([self.axes_range_sliders["sl_y_min"].valinit, self.axes_range_sliders["sl_y_min"].valinit], [0, 1])) self.axes_range_sliders["sl_y_max"].valinit = self.model.state_variable_range[self.svy][1] @@ -546,7 +543,6 @@ def update_yrange_sliders(self): self.axes_range_sliders["sl_y_max"].valmax = max_val_y self.axes_range_sliders["sl_y_max"].ax.set_xlim(min_val_y, max_val_y) self.axes_range_sliders["sl_y_max"].poly.axes.set_xlim(min_val_y, max_val_y) - self.axes_range_sliders["sl_y_max"].poly.xy[[0, 1], 0] = min_val_y self.axes_range_sliders["sl_y_max"].vline.set_data( ([self.axes_range_sliders["sl_y_max"].valinit, self.axes_range_sliders["sl_y_max"].valinit], [0, 1])) self.axes_range_sliders["sl_y_min"].reset()