MCS_Objects.py 文件源码

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

项目:HSL_Dev 作者: MaxJackson 项目源码 文件源码
def get_CV_region(self, fig, ax, ax_stim, ax1, ax2, line1, line2, channel_data_1, channel_data_2, stim_data):
        """
            This function allows the user to select a region for the 
        """
        ax.set_title(self.title)
        ax.plot(channel_data_1)
        ax.plot(channel_data_2)     
        ax_stim.plot(stim_data)

        span = SpanSelector(ax, self.onselect, 'horizontal', useblit=True,
                        rectprops=dict(alpha=0.5, facecolor='red'))

        plt.show(block=False)
        a = raw_input("Press any key... ")

        start_time = self.channels_to_compare[0].time_data[self.indmin]
        end_time = self.channels_to_compare[0].time_data[self.indmax]

        return start_time, end_time
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号