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
评论列表
文章目录