Skip to content
Snippets Groups Projects
Commit 3ff62c6c authored by Lan Dam's avatar Lan Dam
Browse files

correct way to get min, max indexes when zoom in

parent 8c498265
No related branches found
No related tags found
1 merge request!149Fix bug happen when zooming in overlap section
......@@ -254,12 +254,8 @@ def get_total_miny_maxy(
if new_x.size == 0:
return 0, None, None
new_min_x = min(new_x)
new_max_x = max(new_x)
new_min_x_index = np.where(x == new_min_x)[0][0]
new_max_x_index = np.where(x == new_max_x)[0][0]
new_min_x_index = min(new_x_indexes)
new_max_x_index = max(new_x_indexes)
new_y = y[new_min_x_index:new_max_x_index + 1]
new_min_y = min(new_y)
new_max_y = max(new_y)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment