diff --git a/src/erlab/interactive/imagetool/core.py b/src/erlab/interactive/imagetool/core.py index 43dda592..ffca00cd 100644 --- a/src/erlab/interactive/imagetool/core.py +++ b/src/erlab/interactive/imagetool/core.py @@ -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()