Skip to content

Commit

Permalink
When changing the colour of an ROI in RITS mode, call on_visibility_c…
Browse files Browse the repository at this point in the history
…hange() to update plot
  • Loading branch information
samtygier-stfc committed Feb 26, 2024
1 parent 9e77a67 commit 7444f1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mantidimaging/gui/windows/spectrum_viewer/presenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ def change_roi_colour(self, roi_name: str, new_colour: tuple) -> None:
if roi_name in self.view.spectrum_widget.roi_dict:
self.view.spectrum_widget.roi_dict[roi_name].colour = new_colour
self.view.update_roi_color(roi_name, new_colour)
self.view.on_visibility_change()

def add_rits_roi(self) -> None:
roi_name = ROI_RITS
Expand Down

0 comments on commit 7444f1f

Please sign in to comment.