mantidproject / mantidimaging

Graphical toolkit for neutron imaging.
https://mantidproject.github.io/mantidimaging
GNU General Public License v3.0
13 stars 6 forks source link

Spectrum Line Plot from Image Mode ROI visible in ROI Mode When Normalisation Selected Within ROI Mode #2376

Closed JackEAllen closed 1 week ago

JackEAllen commented 1 week ago

Summary

Selecting normalisation within the ROI view of the Spectrum Viewer updates and displays the spectrum plot from the Image view (see screenshot)

Steps To Reproduce

Expected Behaviour

Spectrum line plot from Image view should not be visible within the ROI view.

Current Behaviour

Spectrum line plot from image view is visible within the ROI view when normalisation is selected. A work around to resolve this is flicking between the Image view and the ROI view alongside the spectrum line plot for the ROI view.

Context

Mantid Imaging 2.8.0 Bug found during Hackathon

Failure Logs

WARNING: /mantidimaging-dev/lib/python3.12/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py:509: UserWarning: Item already added to PlotItem, ignoring.

WARNING: /mantidimaging-dev/lib/python3.12/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py:509: UserWarning: Item already added to PlotItem, ignoring.

Screenshot(s)

image