Skip to content

Commit

Permalink
🐛 image flip on recentering
Browse files Browse the repository at this point in the history
  • Loading branch information
danton267 committed Oct 20, 2023
1 parent 2646491 commit 4a68b19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions callbacks/image_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ def reset_figure_view(n_clicks, annotation_store):

relayout_data = {
"xaxis.range[0]": image_center_coor["x0"],
"yaxis.range[0]": image_center_coor["y0"],
"yaxis.range[0]": image_center_coor["y1"],
"xaxis.range[1]": image_center_coor["x1"],
"yaxis.range[1]": image_center_coor["y1"],
"yaxis.range[1]": image_center_coor["y0"],
}
return new_figure, relayout_data

0 comments on commit 4a68b19

Please sign in to comment.