CRIkitUI.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:CRIkit2 作者: CoherentRamanNIST 项目源码 文件源码
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))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号