def roiSpectrum(self):
"""
Plot spectrum over selected region-of-interest (ROI).
Note: This function just sets up the signal-slot connection for the \
MPL window. It executes all the way through
Action
------
Left mouse-click : Select vertex point
Right mouse-click : Close polygon
"""
if self.cid is None:
# Updated by _roiClick
self.x_loc_list = []
self.y_loc_list = []
self.cid = self.img_BW.mpl.mpl_connect('button_press_event',
lambda event: self._roiClick(event, self._roiSpectrumPlot))
self.img_BW.mpl.setCursor(_QCursor(_QtCore.Qt.CrossCursor))
self.setCursor(_QCursor(_QtCore.Qt.CrossCursor))
评论列表
文章目录