Skip to content

Commit

Permalink
autorange after fft update
Browse files Browse the repository at this point in the history
  • Loading branch information
sezelt committed Feb 6, 2024
1 parent 9e94fe9 commit 54215bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/py4D_browser/update_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ def update_real_space_view(self, reset=False):
self.fft_widget.setImage(
fft.T, autoLevels=False, levels=levels, autoRange=mode_switch
)
self.fft_widget.getImageItem().setRect(0,0,fft.shape[1],fft.shape[1])
self.fft_widget.getImageItem().setRect(0, 0, fft.shape[1], fft.shape[1])
if mode_switch:
# Need to autorange after setRect
self.fft_widget.autoRange()


def update_diffraction_space_view(self, reset=False):
Expand Down

0 comments on commit 54215bd

Please sign in to comment.