MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / show_roi_bound

Method show_roi_bound

pyxrf/model/lineplot.py:1107–1119  ·  view source on GitHub ↗
(self, change)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 3

plot_roi_boundMethod · 0.95
_update_canvasMethod · 0.95
itemsMethod · 0.80

Tested by

no test coverage detected