def subtractROIStart(self):
"""
Acquire an average spectrum from a user-selected ROI and subtract.
Note: This function just sets up the signal-slot connection for the \
MPL window. It executes all the way through
"""
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._roiSubtract))
self.img_BW.mpl.setCursor(_QCursor(_QtCore.Qt.CrossCursor))
self.setCursor(_QCursor(_QtCore.Qt.CrossCursor))
评论列表
文章目录