Skip to content

Commit

Permalink
fix(interactive.imagetool): fix autoscale when loading data
Browse files Browse the repository at this point in the history
  • Loading branch information
kmnhan committed Aug 30, 2024
1 parent 9a801a5 commit 2c12f59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/erlab/interactive/imagetool/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,10 @@ def refresh_current(self, axes: tuple[int, ...] | None = None) -> None:
def refresh(self, cursor: int, axes: tuple[int, ...] | None = None) -> None:
self.sigIndexChanged.emit(cursor, axes)

@QtCore.Slot()
def view_all(self) -> None:
for ax in self.axes:
for ax in reversed(self.axes):
# Updating linked axes before the main image to prevent fixed limits
ax.vb.enableAutoRange()
ax.vb.updateAutoRange()

Expand Down

0 comments on commit 2c12f59

Please sign in to comment.