diff --git a/bec_widgets/examples/eiger_plot/eiger_plot.py b/bec_widgets/examples/eiger_plot/eiger_plot.py index e5cf1c62..491ffb0e 100644 --- a/bec_widgets/examples/eiger_plot/eiger_plot.py +++ b/bec_widgets/examples/eiger_plot/eiger_plot.py @@ -90,9 +90,7 @@ class EigerPlot(QWidget): @pyqtSlot() def on_image_update(self): - if self.comboBox_rotation.currentIndex() == 0: # non rotated image - self.imageItem.setImage(self.image, autoLevels=False) - else: # rotated image + if self.comboBox_rotation.currentIndex() > 0: # rotated image self.image = self.rotate_data(data=self.image, k=self.comboBox_rotation.currentIndex()) self.imageItem.setImage(self.image, autoLevels=False)