(self, change)
| 1105 | |
| 1106 | @observe("roi_dict") |
| 1107 | def show_roi_bound(self, change): |
| 1108 | logger.debug("roi dict changed {}".format(change["value"])) |
| 1109 | self.plot_roi_bound() |
| 1110 | |
| 1111 | if len(self.roi_dict): |
| 1112 | for k, v in self.roi_dict.items(): |
| 1113 | if v.show_plot: |
| 1114 | for ln in self.roi_plot_dict[k]: |
| 1115 | ln.set_visible(True) |
| 1116 | else: |
| 1117 | for ln in self.roi_plot_dict[k]: |
| 1118 | ln.set_visible(False) |
| 1119 | self._update_canvas() |
| 1120 | |
| 1121 | def get_suggested_new_manual_peak_energy(self): |
| 1122 | """ |
nothing calls this directly
no test coverage detected