Commit d8577829 authored by Thomas Vincent's avatar Thomas Vincent

fix ROI hidden when changing scan

parent 65e825f1
...@@ -529,16 +529,15 @@ class ShiftAreaSelectorWidget(Qt.QWidget): ...@@ -529,16 +529,15 @@ class ShiftAreaSelectorWidget(Qt.QWidget):
:param node: :param node:
""" """
plot = self.__plotWid.plot() if not node: # this should not happen ever
plot.clear()
if not node:
# this shouldnt happen ever
raise ValueError('node is None') raise ValueError('node is None')
plotData = node.getFullData() plotData = node.getFullData()
plot.setPlotData(plotData.x, plotData.y, values=plotData.z) self.__plotWid.plot().setPlotData(
plotData.x, plotData.y, values=plotData.z)
self.__roiWidget.roiManager().showRois(True)
def showEvent(self, event): def showEvent(self, event):
super(ShiftAreaSelectorWidget, self).showEvent(event) super(ShiftAreaSelectorWidget, self).showEvent(event)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment