(self, *, e_low=None, e_high=None)
| 629 | self.exp_data_update({"value": data_arr}) |
| 630 | |
| 631 | def plot_vertical_marker(self, *, e_low=None, e_high=None): |
| 632 | # It doesn't seem necessary to force the marker inside the selected range. |
| 633 | # It may be used for purposes that require to set it outside the range |
| 634 | # self._vertical_marker_set_inside_range(e_low=e_low, e_high=e_high) |
| 635 | |
| 636 | x_v = (self.vertical_marker_kev, self.vertical_marker_kev) |
| 637 | y_v = (-1e30, 1e30) # This will cover the range of possible values of accumulated counts |
| 638 | |
| 639 | if self.line_vertical_marker: |
| 640 | self.line_vertical_marker.remove() |
| 641 | # self._ax.lines.remove(self.line_vertical_marker) |
| 642 | self.line_vertical_marker = None |
| 643 | if self.vertical_marker_is_visible: |
| 644 | (self.line_vertical_marker,) = self._ax.plot(x_v, y_v, color="blue") |
| 645 | |
| 646 | def set_plot_vertical_marker(self, marker_position=None, mouse_clicked=False): |
| 647 | """ |
no outgoing calls
no test coverage detected