Callback, mouse button pressed
(self, event)
| 1368 | # self._update_canvas() |
| 1369 | |
| 1370 | def canvas_onpress(self, event): |
| 1371 | """Callback, mouse button pressed""" |
| 1372 | if self.t_bar.mode == "": |
| 1373 | if event.inaxes == self._ax: |
| 1374 | if event.button == 1: |
| 1375 | xd = event.xdata |
| 1376 | self.set_plot_vertical_marker(marker_position=xd, mouse_clicked=True) |
| 1377 | else: |
| 1378 | self.hide_plot_vertical_marker(mouse_clicked=True) |
| 1379 | |
| 1380 | # =========================================================== |
| 1381 | # Functions for plotting spectrum preview |
nothing calls this directly
no test coverage detected